(nonserious) jorts programming language
Go to file
Luna 8bc220d2f8 chunk: split writing side-effects into own function
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 (?)
2019-06-03 00:55:50 -03:00
src chunk: split writing side-effects into own function 2019-06-03 00:55:50 -03:00
.gitignore rm make_exprs.py, moving to the c part 2019-06-01 00:04:04 -03:00
LICENSE Initial commit 2019-03-08 07:47:28 +00:00
README.md add not operator 2019-06-02 00:02:37 -03:00
build.zig move to zig 2019-05-31 16:15:27 -03:00

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