zuzu-rust 0.2.0

Rust implementation of ZuzuScript
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from std/eval import eval;
from test/more import *;

let out := eval(
	"from std/math import Math;\n"
	_ "trait EvalTrait {\n"
	_ "  method metric () {\n"
	_ "    return round( Math.pi * 2 );\n"
	_ "  }\n"
	_ "}\n"
	_ "class EvalThing with EvalTrait;\n"
	_ "new EvalThing().metric();",
);

is( out, 6, "eval can import module and define trait+class before instantiation" );

done_testing();