From 419420770c4545ea4010047ef2153004d4700eed Mon Sep 17 00:00:00 2001 From: _ov4 Date: Mon, 2 Feb 2026 08:45:01 +0000 Subject: Added REAL and BOOLEAN types, DIV and MOD operators --- include/cps/Lexer.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'include/cps/Lexer.h') diff --git a/include/cps/Lexer.h b/include/cps/Lexer.h index 4226cc3..15f56c4 100644 --- a/include/cps/Lexer.h +++ b/include/cps/Lexer.h @@ -32,15 +32,24 @@ enum Token { tok_array = -19, tok_of = -20, + tok_real_kw = -21, + tok_boolean_kw = -22, + tok_true = -23, + tok_false = -24, + tok_identifier = -100, - tok_number = -101, + tok_number_int = -101, + tok_number_real = -102, tok_assign = -200, // <- tok_eq = -201, // = tok_ne = -202, // <> tok_le = -203, // <= tok_ge = -204, // >= - + + tok_div = -205, + tok_mod = -206, + tok_colon = -300, // : tok_function = -400, @@ -59,6 +68,7 @@ class Lexer { public: std::string IdentifierStr; int64_t NumVal; + double RealVal; int gettok(); int getLine() const { return CurrentLine; } -- cgit v1.3.1-4-g156e