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/bf | |
parent | 5076866caf273afa8ac21ead4fafaa6c4d233f9a (diff) |
improved parsing fn types; fixed tests
Diffstat (limited to 'tests/bf')
-rw-r--r-- | tests/bf/bf.toc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/bf/bf.toc b/tests/bf/bf.toc index b624101..c2f9970 100644 --- a/tests/bf/bf.toc +++ b/tests/bf/bf.toc @@ -32,10 +32,12 @@ getstdin ::= fn() []char { }; puti ::= fn(x: int) { + #C("extern int printf(const char *fmt, ...)"); #C("printf(\"%ld\\n\", x)"); }; main ::= fn() { + #C("extern int putchar(int c)"); code := getstdin(); tape_sz := 3; tape := new(int, tape_sz); |