Closed adamchalmers closed 1 year ago
The AST just being Vec<FnDef>;
is very interesting.
I definitely got a bit lost in the parsing, so you're not tokenising first, going straight from string to AST?
Yeah this is tokenization and parsing in one step. AST will eventually have other things like a main
function, comments, imports.
We can parse function declaration, invocation, and let-in! E.g.
Here's an example of the CLI functionality.
Compilation errors give you a stack trace of the parser, showing what it's trying to parse and where.