Make environment generic and adapt closures

Added unit test
This commit is contained in:
Giulio Agostini
2026-06-29 20:50:29 +02:00
parent 4e2645e12d
commit 29c86d278d
30 changed files with 820 additions and 30 deletions
Regular → Executable
View File
Regular → Executable
+15
View File
@@ -10,3 +10,18 @@ end
internal := closure();
internal();
a := "Global";
b := a;
c := b;
c = b = a;
d := c = b = a;
do
showA :: fn() do
print a;
end
showA();
a := "Local";
showA();
end
Regular → Executable
View File
Regular → Executable
View File
View File