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.
moving to lox described in https://craftinginterpreters.com
to go with. better learn something first, then walk towards things like
a static typed lang lol
anyways if you were here for jorts as my own language thing
do leave
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
handling of ReturnType follows the hello.jt rule, that it's implicitly
void.
- add Reader.peek, a repr, Reader.expect_val, Reader.ignore
- add _fn_ret_type for ReturnType generation
- fix some things when reading named functions
- add read_import
- add handler for unexpected reserved word
- add some ast cleanups on a read_loop
- add ast skip when token is None
- add Reader.expect, Reader.next_safe
- fix fn_read_args, use TypedVar
- use Reader.expect in read_function's post-fn check
- use Function in read_function
- add basics of blocks using { and } in read_start