summaryrefslogtreecommitdiff
path: root/src/compiler/lexer.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/lexer.c
parentcfc289f11c09aad28482204255934742e0f3f87f (diff)
some clean ups
Diffstat (limited to 'src/compiler/lexer.c')
-rw-r--r--src/compiler/lexer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/lexer.c b/src/compiler/lexer.c
index fa96203..8cf0cc3 100644
--- a/src/compiler/lexer.c
+++ b/src/compiler/lexer.c
@@ -180,6 +180,7 @@ bool lexerNodeArrayIsError(LexerNodeArray array) {
return LEXER_NODE_ARRAY_ERROR.size == array.size;
}
+#ifdef PRINT_COMPILE_TREE
void lexerNodeArrayPrint(LexerNodeArray array) {
for (size_t i = 0; i < array.size; ++i) {
LexerNode node = array.data[i];
@@ -187,6 +188,7 @@ void lexerNodeArrayPrint(LexerNodeArray array) {
node.str_begin, LEXER_TOKEN_STRINGS[node.token]);
}
}
+#endif
void lexerNodeArrayDestroy(LexerNodeArray array) { free(array.data); }