billhsu / klox

A Kotlin implementation of the Lox language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

klox

A Kotlin implementation of the Lox language with grammar extensions to support arrays and static typing.

Goals:

  • Lox parser
  • Lox interpreter
  • Add support for arrays
  • Add support for static typing

(We will try to stay as close as the original implementation from the book as possible.)

Instructions

To compile

./gradlew clean build

To run klox in interactive prompt mode

./klox

To run a klox file

./klox filename

Grammar

Please refer to grammar.md.

About

A Kotlin implementation of the Lox language


Languages

Language:Kotlin 99.9%Language:Shell 0.1%