Add type system and refator for having only epression
This commit is contained in:
Giulio Agostini
2026-07-06 10:43:17 +02:00
parent 9f15a00b98
commit 842216729b
23 changed files with 940 additions and 979 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
closure :: fn() do
closure :: fn(): Any do
value := "Closure";
internal :: fn() do
internal :: fn(): String do
print value;
return value;
end
end;
return internal;
end
end;
internal := closure();
internal();
@@ -17,9 +17,9 @@ c := b;
c = b = a;
d := c = b = a;
do
showA :: fn() do
showA :: fn(): Nil do
print a;
end
end;
showA();
a := "Local";