Commit Graph

13 Commits

Author SHA1 Message Date
Luna ec652b29d9 remove print debug 2019-06-01 23:35:13 -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 2736bee8d8 scanner: remove debug print 2019-06-01 20:34:09 -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 d62c58a195 scanner: add identifiers 2019-06-01 17:15:35 -03:00
Luna 566d8313f3 add number tokens 2019-06-01 17:13:50 -03:00
Luna 9d1d253c94 scanner: fix peekNext 2019-06-01 17:12:00 -03:00
Luna 27b04e1612 scanner: add basic error handling, strings, comments 2019-06-01 17:07:22 -03:00
Luna f4f1fe1fbc scanner: add whitespace handling 2019-06-01 16:54:15 -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