Aoxian / jlox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jlox

Java CI with Maven

An implementation of the Lox programing language, from the book Crafting Interpreters by Bob Nystrom.

  • This version of jlox is a tree-walk interpreter, written test first.
  • Currently, only a scanner has been implemented, and the compiler simply displays the scanned tokens as strings.

Setup

  • For this implementation of jlox, we are using Maven for project management tasks.

Run

  • With no argument, the program will act as a Lox REPL.
  • With one argument, a path to a file, the program will interpret the file.

Development

Tools

GenerateAST

  • A script, that can be extended, to build the abstract syntax tree.
  • Usage: generate_ast <output_directory>
  • Generates:
    lox/Expression.java

About

License:MIT License


Languages

Language:Java 100.0%