Skip to main content

Module logic_loops

Module logic_loops 

Source
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.

FunctionStage
lexing_loopsource -> Vec<Token>
parsing_looptokens -> Vec<Statement>
eval_loopstatements -> execution (eval feature only)

Functionsยง

eval_loop
Resolves and evaluates statements, or prints the error and exits.
lexing_loop
Lexes source into a token stream, or prints the error and exits.
parsing_loop
Parses tokens into an AST statement list, or prints the error and exits.