summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc41
1 files changed, 14 insertions, 27 deletions
diff --git a/test.toc b/test.toc
index 652af26..3cc5c91 100644
--- a/test.toc
+++ b/test.toc
@@ -1,34 +1,21 @@
-// puti @= fn(x: int) {
-// #C("printf(\"%ld\\n\", (long)x);
-// ");
-// };
+puti @= fn(x: int) {
+ #C("printf(\"%ld\\n\", (long)x);
+");
+};
-// putch @= fn(x: char) {
-// #C("printf(\"%c\\n\", x);
-// ");
-// };
+putch @= fn(x: char) {
+ #C("printf(\"%c\\n\", x);
+");
+};
-// putf @= fn(x: float) {
-// #C("printf(\"%f\\n\", (double)x);
-// ");
-// };
+putf @= fn(x: float) {
+ #C("printf(\"%f\\n\", (double)x);
+");
+};
Foo @= int;
-x, y : int;
-a, b := 3, 5;
-c: int;
-d := 8;
main @= fn() {
- x, y : int;
- a, b := 3, 5;
- c: int;
- d := 8;
+ a := 35238 as Foo;
+ puti(a as int);
};
-
-// main @= fn() {
-// f := fn(x: int) { p := &x; *p = 5; };
-// x, y := 3;
-// // f(3);
-// // x : Foo;
-// };