Remove debug code

This commit is contained in:
bʰedoh₂ swé 2024-06-11 02:57:01 +05:00
parent b673f99433
commit 9e80de017f
2 changed files with 1 additions and 23 deletions

View File

@ -31,14 +31,7 @@ int main(int argc, char *argv[]) {
return 1; return 1;
} }
printf("Parsed: \n"); printf("%s\n", compile(code));
printtree(code,1);
printf("\nProcessed: \n");
process(code, NULL);
printtree(code,1);
printf("\nCompiled: \n%s\n", compile(code));
se_free(code); se_free(code);
code = NULL; code = NULL;

View File

@ -6,10 +6,6 @@
#include "parser.h" #include "parser.h"
#include "extstring.h" #include "extstring.h"
#ifdef DEBUG
#include "printtree.h"
#endif
tSyntaxElement* parse(FILE* file) { tSyntaxElement* parse(FILE* file) {
tSyntaxElement* syntaxtree = se_create(); tSyntaxElement* syntaxtree = se_create();
@ -28,17 +24,6 @@ tSyntaxElement* parse(FILE* file) {
while (1) { while (1) {
symbol = fgetc(file); 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)) if (feof(file))
break; break;