Following the book "Crafting Interpreters" by Robert Nystrom
Written in Java, with the exception of the generate_ast.py
script, used to to generate the classes for Abstract Syntax Tree contained in Expr.java
and Stmt.java
.
Additional features (exercises for the reader)
- multi-line C-style comments
- C-like comma operator
- ternary conditional operator
- break and continue
Work in progress...