Commit Graph

13 Commits

Author SHA1 Message Date
Luna c5d704a34f add not operator 2019-06-02 00:02:37 -03:00
Luna 1d774c6011 add support for nil, true and false literal values 2019-06-01 23:44:59 -03:00
Luna 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
Luna 0f8e19adf1 compiler: finish parser (for math expressions) 2019-06-01 21:32:25 -03:00
Luna 230fef20b5 add other bytecode emitters 2019-06-01 20:48:26 -03:00
Luna e1d0e3ec0b add basic compiler code 2019-06-01 20:33:43 -03:00
Luna 7d7aabbdd7 scanner: add keyword handling (copied off the old scanner)
as with most things, lol
2019-06-01 17:20:50 -03:00
Luna 27b04e1612 scanner: add basic error handling, strings, comments 2019-06-01 17:07:22 -03:00
Luna 2c7cf356b3 scanner: add basic tokens and matched-tokens 2019-06-01 16:51:02 -03:00
Luna 6b9cc575d9 add draft scanner, remove messy Token union, replace by struct 2019-06-01 16:37:24 -03:00
Luna 63045e4df5 add src/new_scanner.zig 2019-06-01 16:21:36 -03:00
Luna a9dca436bd remove chunk running code, add draft compiler struct 2019-06-01 16:12:39 -03:00
Luna 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