From 3fa3c17a12cb52edbcc9890cad59d610e0360f90 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Wed, 22 Jan 2020 21:41:34 -0500 Subject: improved parsing fn types; fixed tests --- tests/bf/bf.toc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/bf') 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); -- cgit v1.2.3