Remove debug code
This commit is contained in:
parent
b673f99433
commit
9e80de017f
@ -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;
|
||||
|
15
src/parser.c
15
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user