summaryrefslogtreecommitdiffstats
path: root/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/parse.h b/parse.h
index 0b10010d..c6a778ca 100644
--- a/parse.h
+++ b/parse.h
@@ -53,9 +53,13 @@ std::ostream& operator << (std::ostream& o, const token& t);
struct parse_error: public std::runtime_error
{
const token* tok;
- parse_error (const std::string& msg): runtime_error (msg), tok (0) {}
- parse_error (const std::string& msg, const token* t): runtime_error (msg),
- tok (t) {}
+ bool skip_some;
+ parse_error (const std::string& msg):
+ runtime_error (msg), tok (0), skip_some (true) {}
+ parse_error (const std::string& msg, const token* t):
+ runtime_error (msg), tok (t), skip_some (true) {}
+ parse_error (const std::string& msg, bool skip):
+ runtime_error (msg), tok (0), skip_some (skip) {}
};