15c58a2216
comparison operators, part 1
2019-06-02 00:16:33 -03:00
c5d704a34f
add not operator
2019-06-02 00:02:37 -03:00
1d774c6011
add support for nil, true and false literal values
2019-06-01 23:44:59 -03:00
589413488c
move towards dynamically typed values
...
- remove InterpretResult as an enum, replace by error.
- scanner: fix peekNext()
- vm: add runtime errors, add VM.peek()
2019-06-01 23:33:53 -03:00
0f8e19adf1
compiler: finish parser (for math expressions)
2019-06-01 21:32:25 -03:00
e1d0e3ec0b
add basic compiler code
2019-06-01 20:33:43 -03:00
6b9cc575d9
add draft scanner, remove messy Token union, replace by struct
2019-06-01 16:37:24 -03:00
a9dca436bd
remove chunk running code, add draft compiler struct
2019-06-01 16:12:39 -03:00
088674bf0b
vm: add dynamically-sized growing stack
2019-06-01 15:45:30 -03:00
3377d1675c
vm, chunk: add binary operators
2019-06-01 15:40:18 -03:00
2822676707
vm: add negate opcode
2019-06-01 15:27:19 -03:00
61e463713c
vm: add stack
2019-06-01 15:23:23 -03:00
456bc95138
vm: add debug flags
2019-06-01 15:01:39 -03:00
dae3c259fd
add basic virtual machine code
2019-06-01 14:55:11 -03:00
c4401dc8cf
moving to the virtual machine part of the book, pt 1
...
the java part would still fuck me up since it lies on OOP stuff
that zig doesnt provide, so i'm skipping towards the C part of the book
which will hopefully be more understandable from a zig perspective.
2019-06-01 01:20:06 -03:00