diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-16 13:21:05 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-16 13:21:05 +0000 |
| commit | e44bdc6a2a0cf624b08046ecc7e5c5d5d9d2d66c (patch) | |
| tree | f5276cc0dd2f34e4d30a58f80223912265a1c5a0 /include/cps/Lexer.h | |
| parent | e1e789ac0249149a4aa1671f5f9260d488cb617a (diff) | |
fix(compiler): correct CIE semantics and diagnostic locations
Use standard WHILE headers and default-public class fields, resolve
pseudocode identifiers without case sensitivity, and check signed i64
literal boundaries before conversion. Preserve source locations across
recursive emission and function diagnostics.
Add 22 regression cases and update compiler examples and documentation.
Validated all 69 CTest entries with the original Linux Actions seed and
verified the release package's embedded, native and IR output paths.
Diffstat (limited to 'include/cps/Lexer.h')
| -rw-r--r-- | include/cps/Lexer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/cps/Lexer.h b/include/cps/Lexer.h index efedec8..749ae0b 100644 --- a/include/cps/Lexer.h +++ b/include/cps/Lexer.h @@ -25,7 +25,6 @@ enum Token { tok_endif = -9, tok_while = -10, - tok_do = -11, tok_endwhile = -12, tok_repeat = -13, @@ -116,7 +115,7 @@ class Lexer { struct TokenData { int Kind, Line; std::string Identifier, String; - int64_t Integer; + uint64_t Integer; double Real; char Character; }; @@ -129,7 +128,7 @@ public: std::string IdentifierStr; std::string StringVal; - int64_t NumVal = 0; + uint64_t NumVal = 0; double RealVal = 0; char CharVal = '\0'; |
