diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-14 03:31:47 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-14 03:31:47 +0000 |
| commit | 2147449f4d6f37b4624990ff26bce58ebf3cfb4b (patch) | |
| tree | bbf09cea539b8ea01ee3d392ec828067552fa4b7 /include/cps/Parser.h | |
| parent | 699e18b65b07af73ccd14b28f83572b1843c7d37 (diff) | |
feat(parser): add explicit parenthesized type casts
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/Parser.h')
| -rw-r--r-- | include/cps/Parser.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <map> #include <optional> #include <string> +#include <set> namespace cps { @@ -20,6 +21,10 @@ class Parser { unsigned BlockDepth = 0; // ParseBlock nesting; 1 = top level std::map<int, int> BinopPrecedence; + std::set<std::string> TypeNames = { + "INTEGER", "REAL", "BOOLEAN", "STRING", "CHAR", "VOID", + "C_INT", "C_CHAR", "C_STRING", "C_DOUBLE" + }; int getNextToken(); int GetTokPrecedence(); |
