summaryrefslogtreecommitdiff
path: root/tests/bf/bf.toc
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-22 21:41:34 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-23 20:24:22 -0500
commit3fa3c17a12cb52edbcc9890cad59d610e0360f90 (patch)
tree69c5b12ce0e82aab5e7d0a0b56aad6457703d06d /tests/bf/bf.toc
parent5076866caf273afa8ac21ead4fafaa6c4d233f9a (diff)
improved parsing fn types; fixed tests
Diffstat (limited to 'tests/bf/bf.toc')
-rw-r--r--tests/bf/bf.toc2
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);