diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 27 |
1 files changed, 17 insertions, 10 deletions
@@ -1,17 +1,24 @@ -puti @= fn(x: int) { - #C("printf(\"%ld\\n\", (long)x); -"); -}; +// puti @= fn(x: int) { +// #C("printf(\"%ld\\n\", (long)x); +// "); +// }; // putf @= fn(x: float) { // #C("printf(\"%f\\n\", (double)x); // "); // }; -Foo @= struct(x @ int) { - a: [x]float; +// Foo @= struct(x @ int) { +// a: [x]float; +// }; + +q @= fn() (int,int) {3,5}; +r @= fn(x, y @=q()) int { +x*y }; -main @= fn() { - f : Foo(13); - puti(f.a[12]); -};
\ No newline at end of file +// main @= fn() { +// // f : Foo(13); +// // puti(f.a[12]); +// puti(r(10,10)); +// puti(r(10,5+5)); +// };
\ No newline at end of file |