aboutsummaryrefslogtreecommitdiff
path: root/lib/Lexer/Lexer.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-14 03:29:04 +0000
committer_ov4 <ov4@ov4.org>2026-10-14 03:29:04 +0000
commit699e18b65b07af73ccd14b28f83572b1843c7d37 (patch)
tree98b98269e02eb9052b2af698383a858d63b120a7 /lib/Lexer/Lexer.cc
parent3ef7f8b778dce23af25965b379126b9dd95d1c27 (diff)
feat(types): add native C scalar types and imported aliases
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'lib/Lexer/Lexer.cc')
-rw-r--r--lib/Lexer/Lexer.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Lexer/Lexer.cc b/lib/Lexer/Lexer.cc
index d366afc..31bafe1 100644
--- a/lib/Lexer/Lexer.cc
+++ b/lib/Lexer/Lexer.cc
@@ -74,6 +74,11 @@ int Lexer::gettok() {
if (IdentifierStr == "REAL") return tok_real_kw;
if (IdentifierStr == "STRING") return tok_string_kw;
if (IdentifierStr == "CHAR") return tok_char_kw;
+ if (IdentifierStr == "C_TYPE") return tok_c_type;
+ if (IdentifierStr == "C_INT") return tok_c_int;
+ if (IdentifierStr == "C_CHAR") return tok_c_char;
+ if (IdentifierStr == "C_STRING") return tok_c_string;
+ if (IdentifierStr == "C_DOUBLE") return tok_c_double;
if (IdentifierStr == "TRUE") return tok_true;
if (IdentifierStr == "FALSE") return tok_false;