Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 696 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 696 Bytes

tlox

tlox is a work-in-progress optimising compiler based on the bytecode interpreter in Crafting Interpreters.

The language implementation has a few minor changes to the Lox language in Crafting Interpreters and I plan to implement bigger changes, so I am renaming it to tlox.

jloc just contains the original tree-walking interpreter as implemented in the book, with minor additions such as tenary operator (?:).

Planned work

  • implement AST in C and construct control-flow graph
  • implement local analysis and optimisations
  • Run sanitisers to detect and fix memory leaks (e.g. writeString)
  • implement basic type system