From 96acb9df261fe2112cd2863cde45fc0c42115c06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sun, 9 Jun 2024 21:43:02 +0500 Subject: [PATCH] Make debug tree a bit better --- src/main.c | 4 ++-- src/parser.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index e83403c..3dd83c5 100644 --- a/src/main.c +++ b/src/main.c @@ -26,10 +26,10 @@ int main(int argc, char *argv[]) { return 1; } printf("Parsed: \n"); - printtree(code,0); + printtree(code,1); printf("\nProcessed: \n"); process(code, NULL); - printtree(code,0); + printtree(code,1); se_free(code); code = NULL; return 0; diff --git a/src/parser.c b/src/parser.c index 0c15e4e..609402b 100644 --- a/src/parser.c +++ b/src/parser.c @@ -27,7 +27,7 @@ tSyntaxElement* parse(FILE* file) { printf("In parsing. Current symbol: %c\n", symbol); else printf("In parsing. Current symbol: %d\n", symbol); - printtree(syntaxtreestart, 0); + printtree(syntaxtreestart, 1); #endif if (feof(file)) break;