support function literal, set builtins to global context. great!

This commit is contained in:
2025-12-20 20:27:36 +08:00
parent b9a98150ae
commit e7ca714a89
19 changed files with 362 additions and 502 deletions

View File

@@ -1 +1,8 @@
var x = 10
func build_adder(x) -> Function
{
return func(a) => a + x;
}
var add2 = build_adder(2);
var println = __fstdout_println;
println(add2(1));