summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-12-07 18:21:03 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2019-12-07 18:21:03 -0500
commit390f1e368cfdc5011e9eb9af76d2fb44cd8dc0b2 (patch)
treed299c8e4360a68038f575c16d8083275cb1046f0 /test.toc
parent9c44be7b25d61450808e918c14b8dfff49a78a8a (diff)
fixed something weird going on with the tokenizer that might be a bug in clang
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc19
1 files changed, 1 insertions, 18 deletions
diff --git a/test.toc b/test.toc
index c5aa6b5..e17d3a2 100644
--- a/test.toc
+++ b/test.toc
@@ -1,18 +1 @@
-puti ::= fn(x: int) {
- #C("printf(\"%ld\\n\", (long)x);
-");
-};
-putf ::= fn(x: float) {
- #C("printf(\"%f\\n\", (double)x);
-");
-};
-
-Point ::= struct {
- x, y : int;
-};
-
-main ::= fn() {
- p : Point;
- p.x = 5;
- puti(p[if 5 > 6 { "x" } else { "y" }]);
-}; \ No newline at end of file
+x : [1]int; \ No newline at end of file