finish "parsing" of hello.jt

the AST is very ugly as it is rn. had to remove the cleanups or else its
all [[None], [None], ...]

ok im startnig to give up on doing handwritten lmao help

 - add TokenType.string
 - add read_value, read_statement, fix block reading
This commit is contained in:
Luna 2019-03-10 03:04:37 -03:00
parent c2678fe360
commit a7034db0eb
4 changed files with 61 additions and 15 deletions

View file

@ -5,6 +5,7 @@ import io
// main can return int or void, void mains are handled by jortsc
fn main () -> int {
io.puts("pants")
// todo: put it back to io.puts
ioputs("pants")
0
}