pub fn run_str(source: &str, d: Arc<String>) -> Result<(), String>
Expand description
Runs a program from a string.
Examples found in repository?
examples/run_str.rs (lines 7-18)
6 7 8 9 10 11 12 13 14 15 16 17 18 19
fn main() {
error(run_str(
"main.dyon",
Arc::new(
r#"
fn main() {
println("Hi!")
println("1 + 1 = " + str(1+1))
}
"#
.into(),
),
));
}