Compiler experimentation.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Rename compile_and_run to interpret

Better for now

+3 -3
+2 -2
src/lib.rs
··· 1 - /// Compile and run a program, returning the exit code it produced. 2 - pub fn compile_and_run(_input: &str) -> i32 { 1 + /// Interpret a program, returning the result. 2 + pub fn interpret(_input: &str) -> i32 { 3 3 0 4 4 }
+1 -1
tests/main.rs
··· 2 2 ($name:ident, $expected:expr) => { 3 3 #[test] 4 4 fn $name() { 5 - let res = zauber::compile_and_run(include_str!(concat!( 5 + let res = zauber::interpret(include_str!(concat!( 6 6 "examples/", 7 7 stringify!($name), 8 8 ".zbr"