aboutsummaryrefslogtreecommitdiff
path: root/lib/Lexer/Lexer.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 06:50:29 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 06:50:29 +0000
commitc89477d615fb0ce4d89786ef848ffe6aca1da088 (patch)
treeb2c5692cfa4946fcd1df034630fc1a678d922b9c /lib/Lexer/Lexer.cc
parent43451328a5ae74ffa34356259ee02e3786f070c3 (diff)
feat(classes): support explicit NEW constructor method calls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'lib/Lexer/Lexer.cc')
-rw-r--r--lib/Lexer/Lexer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Lexer/Lexer.cc b/lib/Lexer/Lexer.cc
index 9203db1..8f86ced 100644
--- a/lib/Lexer/Lexer.cc
+++ b/lib/Lexer/Lexer.cc
@@ -150,6 +150,7 @@ int Lexer::readToken() {
if (IdentifierStr == "ENDTYPE") return tok_endtype;
if (IdentifierStr == "SET") return tok_set;
if (IdentifierStr == "DEFINE") return tok_define;
+ if (IdentifierStr == "NEW") return tok_new;
if (IdentifierStr == "CLASS") return tok_class;
if (IdentifierStr == "ENDCLASS") return tok_endclass;
if (IdentifierStr == "PUBLIC") return tok_public;