aboutsummaryrefslogtreecommitdiff
path: root/include/cps/Parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cps/Parser.h')
-rw-r--r--include/cps/Parser.h5
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();