diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-01 14:19:31 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-01 14:19:31 -0500 |
commit | 825c98523b8a03733579df33247ab87dae4e3408 (patch) | |
tree | 00d908bd7cc0b36607cf9e97ef6062336dbb5db8 /tests/bf | |
parent | 88e7c92e76ce771e7a1efd4824060e3905194070 (diff) |
improved command line arguments for compiler (added -no-color)
Diffstat (limited to 'tests/bf')
-rw-r--r-- | tests/bf/bf.toc | 6 |
1 files changed, 3 insertions, 3 deletions
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. |