diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-07 18:21:03 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-07 18:21:03 -0500 |
commit | 390f1e368cfdc5011e9eb9af76d2fb44cd8dc0b2 (patch) | |
tree | d299c8e4360a68038f575c16d8083275cb1046f0 /test.toc | |
parent | 9c44be7b25d61450808e918c14b8dfff49a78a8a (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.toc | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -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 |