diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-22 21:41:34 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-23 20:24:22 -0500 |
commit | 3fa3c17a12cb52edbcc9890cad59d610e0360f90 (patch) | |
tree | 69c5b12ce0e82aab5e7d0a0b56aad6457703d06d /tests/arr2 | |
parent | 5076866caf273afa8ac21ead4fafaa6c4d233f9a (diff) |
improved parsing fn types; fixed tests
Diffstat (limited to 'tests/arr2')
-rw-r--r-- | tests/arr2/arr2.toc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/arr2/arr2.toc b/tests/arr2/arr2.toc index ea9ea79..7056416 100644 --- a/tests/arr2/arr2.toc +++ b/tests/arr2/arr2.toc @@ -1,8 +1,10 @@ puti ::= fn(x: int) { + #C("extern int printf(const char *fmt, ...)"); #C("printf(\"%ld\\n\", (long)x); "); }; putf ::= fn(x: float) { + #C("extern int printf(const char *fmt, ...)"); #C("printf(\"%f\\n\", (double)x); "); }; |