summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.toc b/test.toc
index e210822..864d7a9 100644
--- a/test.toc
+++ b/test.toc
@@ -7,12 +7,16 @@ putf ::= fn(x: float) {
");
};
+foo ::= fn(x ::= 5) (int, int) {
+x, 2*x
+};
+
main ::= fn() {
puti(f(3));
puti(f(7));
puti(f(4));
- f ::= fn(x :: int) y := x + 1 { };
+ f ::= fn(x ::= foo()) y := x + 1 { };
r ::= f(3);
puti(r);