implements inner function definition in function condition

This commit is contained in:
Alexander Acker 2024-10-08 12:59:07 +02:00
parent b7f11d1fc2
commit 2fefd8c04f
3 changed files with 58 additions and 9 deletions

View file

@ -0,0 +1,25 @@
add: int a int b -> int
| 1 -> a b +
;
ad: int a int b -> int
| 1 -> a b +
;
fuenf: int a -> int
| 1 -> a
;
drei: int a -> int
| 1 -> a
;
test: int a -> int
| fb: int b -> int
| 1 b == -> 0 0 add
| 1 1 == -> 1 0 ad
;
a fb -> 1 drei
| 1 1 == -> 3 fb
;
0 test