aboutsummaryrefslogtreecommitdiff
path: root/lib/Lexer
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 09:09:54 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 09:09:54 +0000
commit59a2bb6acb975d820ab29be63a6f909d6e6ef40f (patch)
treeac87916075e9e5a9f166b14fea0b39864d801166 /lib/Lexer
parentdc645a36aaade7087ade574cefe69ce7bb29753e (diff)
feat(parser): parse INCLUDE and GLOBAL blocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/Lexer')
-rw-r--r--lib/Lexer/Lexer.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Lexer/Lexer.cc b/lib/Lexer/Lexer.cc
index acdedd0..44d40e5 100644
--- a/lib/Lexer/Lexer.cc
+++ b/lib/Lexer/Lexer.cc
@@ -74,6 +74,9 @@ int Lexer::readToken() {
IdentifierStr += static_cast<char>(LastChar);
if (IdentifierStr == "CONSTANT") return tok_constant;
+ if (IdentifierStr == "INCLUDE") return tok_include;
+ if (IdentifierStr == "GLOBAL") return tok_global;
+ if (IdentifierStr == "ENDGLOBAL") return tok_endglobal;
if (IdentifierStr == "DECLARE") return tok_declare;
if (IdentifierStr == "INTEGER") return tok_integer_kw;
if (IdentifierStr == "BOOLEAN") return tok_boolean_kw;