Make debug tree a bit better
This commit is contained in:
parent
978dfb7309
commit
96acb9df26
@ -26,10 +26,10 @@ int main(int argc, char *argv[]) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
printf("Parsed: \n");
|
printf("Parsed: \n");
|
||||||
printtree(code,0);
|
printtree(code,1);
|
||||||
printf("\nProcessed: \n");
|
printf("\nProcessed: \n");
|
||||||
process(code, NULL);
|
process(code, NULL);
|
||||||
printtree(code,0);
|
printtree(code,1);
|
||||||
se_free(code);
|
se_free(code);
|
||||||
code = NULL;
|
code = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -27,7 +27,7 @@ tSyntaxElement* parse(FILE* file) {
|
|||||||
printf("In parsing. Current symbol: %c\n", symbol);
|
printf("In parsing. Current symbol: %c\n", symbol);
|
||||||
else
|
else
|
||||||
printf("In parsing. Current symbol: %d\n", symbol);
|
printf("In parsing. Current symbol: %d\n", symbol);
|
||||||
printtree(syntaxtreestart, 0);
|
printtree(syntaxtreestart, 1);
|
||||||
#endif
|
#endif
|
||||||
if (feof(file))
|
if (feof(file))
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user