From 825c98523b8a03733579df33247ab87dae4e3408 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 1 Mar 2020 14:19:31 -0500 Subject: improved command line arguments for compiler (added -no-color) --- tests/bf/bf.toc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/bf') diff --git a/tests/bf/bf.toc b/tests/bf/bf.toc index a3f731a..2331467 100644 --- a/tests/bf/bf.toc +++ b/tests/bf/bf.toc @@ -36,11 +36,11 @@ puti ::= fn(x: int) { extern int printf(const char *fmt, ...); #endif "); - #C("printf(\"%ld\\n\", x)"); + #C("printf(\"%ld\\n\", x);"); }; main ::= fn() { - #C("extern int putchar(int c)"); + #C("extern int putchar(int c);"); code := getstdin(); tape_sz := 3; tape := new(int, tape_sz); @@ -102,7 +102,7 @@ main ::= fn() { } } elif code[i] == '.' { c := tape[ptr] as char; - #C("putchar(c)"); + #C("putchar(c);"); } elif code[i] == ',' { // Input doesn't really work, because you // need to send an EOF to end the program. -- cgit v1.2.3