From e44bdc6a2a0cf624b08046ecc7e5c5d5d9d2d66c Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 16 Oct 2026 13:21:05 +0000 Subject: 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. --- include/cps/Lexer.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/cps/Lexer.h') 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'; -- cgit v1.3.1-4-g156e