summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc11
1 files changed, 11 insertions, 0 deletions
diff --git a/test.toc b/test.toc
new file mode 100644
index 0000000..f6bac2f
--- /dev/null
+++ b/test.toc
@@ -0,0 +1,11 @@
+f ::= g();
+
+x ::= 3;
+
+g ::= fn() int { x };
+
+main ::= fn() {
+ #C("printf(\"%ld\\n\", (long)x)");
+ a := g();
+ #C("printf(\"%ld\\n\", (long)a)");
+}; \ No newline at end of file