Skip to content

tbtommyb/tlox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

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

About

Building on Crafting Interpeters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published