diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -6,16 +6,7 @@ putf ::= fn(x: float) { #C("printf(\"%f\\n\", (double)x); "); }; -f ::= fn(x : int) Type { - if x == 0 { int } else { float } -}; - -r ::= fn(n::=, a :f(n)) int { -n -}; - main ::= fn() { - x :: = 3; - y : f(x); - puti(r(y)); + x : : = 3; + puti(x); };
\ No newline at end of file |