From 2147449f4d6f37b4624990ff26bce58ebf3cfb4b Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 14 Oct 2026 03:31:47 +0000 Subject: feat(parser): add explicit parenthesized type casts Co-Authored-By: Claude Fable 5.1 --- include/cps/Parser.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cps/Parser.h') diff --git a/include/cps/Parser.h b/include/cps/Parser.h index 49a9791..5713587 100644 --- a/include/cps/Parser.h +++ b/include/cps/Parser.h @@ -10,6 +10,7 @@ #include #include #include +#include namespace cps { @@ -20,6 +21,10 @@ class Parser { unsigned BlockDepth = 0; // ParseBlock nesting; 1 = top level std::map BinopPrecedence; + std::set TypeNames = { + "INTEGER", "REAL", "BOOLEAN", "STRING", "CHAR", "VOID", + "C_INT", "C_CHAR", "C_STRING", "C_DOUBLE" + }; int getNextToken(); int GetTokPrecedence(); -- cgit v1.3.1-4-g156e