summaryrefslogtreecommitdiff
path: root/src/compiler/parser.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-24 19:37:45 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-24 19:37:45 +0330
commitcaf6ecd9344b13c443435f94c3c5b8ccf717e853 (patch)
tree881708e5e0b49067fa8e43ee0c76df5a29431602 /src/compiler/parser.c
parentcfc289f11c09aad28482204255934742e0f3f87f (diff)
some clean ups
Diffstat (limited to 'src/compiler/parser.c')
-rw-r--r--src/compiler/parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/parser.c b/src/compiler/parser.c
index 956b834..7265c60 100644
--- a/src/compiler/parser.c
+++ b/src/compiler/parser.c
@@ -171,6 +171,7 @@ static const ParserOrder PARSER_ORDER[] = {
static const size_t PARSER_ORDER_SIZE =
sizeof(PARSER_ORDER) / sizeof(*PARSER_ORDER);
+#ifdef PRINT_COMPILE_TREE
void parserNodePrint(const ParserNode *node, int indent) {
for (int i = 0; i < indent; ++i)
printf(" ");
@@ -475,6 +476,7 @@ void parserNodePrint(const ParserNode *node, int indent) {
RETURN_SUCCESS:
printf("}");
}
+#endif
void parserNodeDelete(ParserNode *node) {
if (node == NULL) {