pub fn interpret_program(source: &str) -> Result<String, ParseError>Expand description
Interpret LOGOS source and return output as a string.
Runs the full pipeline (lex → discovery → parse → interpret) without generating Rust code. Useful for sub-second feedback during development.
§Arguments
source- LOGOS source code as a string
§Returns
The collected output from Show statements, joined by newlines.
§Errors
Returns ParseError if parsing fails or the interpreter encounters
a runtime error.