diff options
Diffstat (limited to 'parse.h')
-rw-r--r-- | parse.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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) {} }; |