pub fn exec_stmts(
stmts: &[(Stmt, bool)],
env: &mut Env,
io: &mut IoContext,
fmt: &FormatMode,
base: Base,
compact: bool,
) -> Result<Option<Signal>, String>Expand description
Executes a sequence of parsed statements, handling flow control signals.
Returns:
Ok(None)— normal completionOk(Some(Signal::Break))—breakstatement executedOk(Some(Signal::Continue))—continuestatement executedErr(e)— runtime error
Loop implementations (For, While) catch Break/Continue internally.
A signal that escapes to the top-level caller should be reported as an error.