Expand description
Amarok parser: source text → AST.
Errors are reported via amarok_syntax::Diagnostic, shared with the
interpreter so a single rendering routine handles both phases.
Internals:
Modules§
Functions§
- parse_
expression - Parse a single expression (useful for unit tests and REPL experiments).
- parse_
program - Parse a full Amarok program (multiple statements).
- parse_
program_ with_ file_ id - Parse a full Amarok program and stamp every span with the given
FileId. - parse_
statement - Parse a single statement (useful for REPL later).
- set_
expression_ 🔒file_ id - set_
program_ 🔒file_ id - set_
statement_ 🔒file_ id