From 59a2bb6acb975d820ab29be63a6f909d6e6ef40f Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 09:09:54 +0000 Subject: feat(parser): parse INCLUDE and GLOBAL blocks Co-Authored-By: Claude Opus 5.5 --- lib/Lexer/Lexer.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Lexer') 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(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; -- cgit v1.3.1-4-g156e