From 9e80de017fd74750ee3e760bff1f5e2f8f7dde41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Tue, 11 Jun 2024 02:57:01 +0500 Subject: [PATCH] Remove debug code --- src/main.c | 9 +-------- src/parser.c | 15 --------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/src/main.c b/src/main.c index df4674b..9a4d3bb 100644 --- a/src/main.c +++ b/src/main.c @@ -31,14 +31,7 @@ int main(int argc, char *argv[]) { return 1; } - printf("Parsed: \n"); - printtree(code,1); - - printf("\nProcessed: \n"); - process(code, NULL); - printtree(code,1); - - printf("\nCompiled: \n%s\n", compile(code)); + printf("%s\n", compile(code)); se_free(code); code = NULL; diff --git a/src/parser.c b/src/parser.c index a0653f2..896774e 100644 --- a/src/parser.c +++ b/src/parser.c @@ -6,10 +6,6 @@ #include "parser.h" #include "extstring.h" -#ifdef DEBUG - #include "printtree.h" -#endif - tSyntaxElement* parse(FILE* file) { tSyntaxElement* syntaxtree = se_create(); @@ -28,17 +24,6 @@ tSyntaxElement* parse(FILE* file) { while (1) { symbol = fgetc(file); - #ifdef DEBUG - - if (!isspace(symbol)) - printf("In parsing. Current symbol: %c\n", symbol); - else - printf("In parsing. Current symbol: %d\n", symbol); - - printtree(syntaxtreestart, 1); - - #endif - if (feof(file)) break;