From 263e9d443ad863c9339f55c5df8c5c9d8e89c2d1 Mon Sep 17 00:00:00 2001 From: Curle Date: Mon, 18 Jan 2021 00:26:30 +0000 Subject: [PATCH] Remove Print functions. We can printf, baby. --- src/Main.c | 7 +------ tests/printf | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 tests/printf diff --git a/src/Main.c b/src/Main.c index bb3db1e..3dcc268 100644 --- a/src/Main.c +++ b/src/Main.c @@ -56,7 +56,7 @@ char* TokenNames[] = { "Logical Block Start", "Logical Block End", - + "Comma", "Identifier", @@ -97,11 +97,6 @@ int main(int argc, char* argv[]) { exit(1); } - AddSymbol("PrintInteger", RET_CHAR, ST_FUNC, SC_GLOBAL, 0, 1); - AddSymbol("PrintString", RET_CHAR, ST_FUNC, SC_GLOBAL, 1, 1); - AddSymbol("PrintChar", RET_CHAR, ST_FUNC, SC_GLOBAL, 2, 1); - //AddSymbol("forgecord", PTR_CHAR, ST_VAR); - Tokenise(&CurrentToken); AssemblerPreamble(); diff --git a/tests/printf b/tests/printf new file mode 100644 index 0000000..4a67955 --- /dev/null +++ b/tests/printf @@ -0,0 +1,6 @@ +int :: printf(char* format); + +int :: main () { + printf("%s\r\n", "hi there"); + return (0); +} \ No newline at end of file