Closures (in interpretation)

This commit is contained in:
Dmitry Boulytchev 2019-09-24 01:12:04 +03:00
parent 39388d77fd
commit c92555f7a8
5 changed files with 38 additions and 25 deletions

View file

@ -0,0 +1,2 @@
> 11
18

10
regression/test061.expr Normal file
View file

@ -0,0 +1,10 @@
fun plus (x) {
fun f (y) {
return x + y
}
return f
}
write (plus(5)(6));
write (plus(8)(10))

1
regression/test061.input Normal file
View file

@ -0,0 +1 @@
5