Expand description
Script execution: parse script to AST (assign, command, if/for/while, source), then interpret.
Structs§
- Parse
Error - Parse error with message.
Enums§
- CmdOutcome
- Result of running one command line: success (exit 0), failed (non-zero), or exit requested.
- Script
Stmt - One script statement.
Functions§
- expand_
vars - Expand
$VARand${VAR}insusingvars; undefined names expand to empty string. - logical_
lines - Turn script source into logical lines: join lines ending with
\, strip#comments, skip blank. - parse_
script - Parse logical lines into a list of script statements.
- read_
script_ source_ text - Load script text for
source/ REPLsource/. path: workspace (guest-primary or VFS), then host (design §9). - run_
script - Run script source: logical lines → parse to AST → interpret.