Skip to main content

interpret_for_ui_sync_with_args

Function interpret_for_ui_sync_with_args 

Source
pub fn interpret_for_ui_sync_with_args(
    input: &str,
    program_args: &[String],
) -> InterpreterResult
Expand description

Like interpret_for_ui_sync, but supplies the program’s argument vector to the args() system native. program_args is the full argv (index 0 is the program name), matching the compiled binary’s env::args() — this is what largo run --interpret N forwards so an args-driven main.lg runs the same on the VM/JIT as on the native binary.