aboutsummaryrefslogtreecommitdiff
path: root/include/cps/Lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cps/Lexer.h')
-rw-r--r--include/cps/Lexer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cps/Lexer.h b/include/cps/Lexer.h
index e8d2609..f1def3e 100644
--- a/include/cps/Lexer.h
+++ b/include/cps/Lexer.h
@@ -80,6 +80,7 @@ enum Token {
class Lexer {
int CurrentLine = 1;
+ bool HadError = false;
public:
std::string IdentifierStr;
std::string StringVal;
@@ -89,6 +90,7 @@ public:
int gettok();
int getLine() const { return CurrentLine; }
+ bool hadError() const { return HadError; }
};
}