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
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
14fa63e1f6
finish impl for ConstantLong
2019-06-01 14:18:44 -03:00
2d33e03efb
add incomplete ConstantLong instruction
...
- move ValueList's count to usize for ConstantLong
2019-06-01 02:06:23 -03:00
ba78b39300
add constant values to the virtual machine
2019-06-01 01:46:01 -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
9d4c1249b4
add keyword map when scanner is initialized
...
- add basic identifier reading
2019-05-31 22:34:10 -03:00
69aa7b493d
add number tokens
2019-05-31 22:08:41 -03:00
d1db7a0bd9
add consumption of comments and strings
2019-05-31 21:46:18 -03:00
9a2c50a53e
add basic tokens and a basic lexer
2019-05-31 21:23:51 -03:00
31b0fa783c
add file reads and main prompt
2019-05-31 17:07:08 -03:00
b3ea9637bd
move to zig
2019-05-31 16:15:27 -03:00