(nonserious) jorts programming language
Luna
8bc220d2f8
split writeConstant() into that and writeConstantRaw() for the places where we don't want OP_CONSTANT written as well. this caused a bug where doing `"some const string" + x` would cause an unecessary OP_CONSTANT to be added for the x variable and would cause the wrong result to be given. - main: reset stack on repl tick (?) |
||
---|---|---|
src | ||
.gitignore | ||
build.zig | ||
LICENSE | ||
README.md |
jorts
a compiler for the lox language from https://craftinginterpreters.com
this is a learning project. the implemtation is based heavily off the C part of the book, but also the Java part for the scanner.
notes
- jorts' lox bytecode is not compatible with any implementation.
how do?
zig build run
and play around with it