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;
}
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;

View File

@ -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;