From 390f1e368cfdc5011e9eb9af76d2fb44cd8dc0b2 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sat, 7 Dec 2019 18:21:03 -0500 Subject: fixed something weird going on with the tokenizer that might be a bug in clang --- test.toc | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'test.toc') 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 -- cgit v1.2.3