run

Function run 

Source
pub fn run(source: &str)
Expand description

Parses and executes a source program written in the custom language.

This function uses the Pest parser to convert the source string into an AST, then executes each statement in order using a fresh Context.

ยงArguments

  • source - A string slice containing the source code to run.