Commit graph

64 commits

Author SHA1 Message Date
b040f47956 ast: change AstBinOp to use *AstNode instead of AstNode
using raw AstNode causes compile-errors due to recursion.
2019-06-04 23:53:55 -03:00
c32b802765 ast: add some more love to pretty printer 2019-06-04 23:44:27 -03:00
71cef32fb0 add basic ast, parser files 2019-06-04 22:11:11 -03:00
c19f6df834 split main code into a runner struct 2019-06-04 21:27:05 -03:00
a44f04c7c8 scanner: finish off with identifiers and keywords 2019-06-04 21:16:25 -03:00
498ea72da4 add support for ++ and += 2019-06-04 18:07:46 -03:00
285f0b8410 add string support 2019-06-04 17:52:37 -03:00
8a9522d954 add multiline comment support 2019-06-04 17:40:13 -03:00
1e47b29685 fix scanner peek/peekNext 2019-06-04 17:28:48 -03:00
765cef87db add number and comment support 2019-06-04 17:24:07 -03:00
1453bef6c5 add nicer error handling, whitespace skipping 2019-06-04 15:18:52 -03:00
59083198c6 add basic scanner logic 2019-06-04 15:06:57 -03:00
3d243eefff add runPrompt / runFile / run functions 2019-06-03 23:12:16 -03:00
ba9b1064f2 initial commit 2019-06-03 21:29:53 -03:00