Expand description
Pipeline driver functions.
Thin wrappers around each pipeline stage that handle errors uniformly:
print to stderr and exit with code 1. Used by both main.rs and any
other binary entry points that need to run the full pipeline without
boilerplate error handling at the call site.
| Function | Stage |
|---|---|
lexing_loop | source -> Vec<Token> |
parsing_loop | tokens -> Vec<Statement> |
eval_loop | statements -> execution (eval feature only) |
Functionsยง
- eval_
loop - Resolves and evaluates
statements, or prints the error and exits. - lexing_
loop - Lexes
sourceinto a token stream, or prints the error and exits. - parsing_
loop - Parses
tokensinto an AST statement list, or prints the error and exits.