summaryrefslogtreecommitdiffstats
path: root/src/parsers.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-02-04 00:51:51 (GMT)
committerEvan Martin <martine@danga.com>2011-02-04 00:51:51 (GMT)
commitaeda4872d35137bdac0b2d7a313ec6f82b993b13 (patch)
tree799868c6bc2ce78ce10cf6310173e1b54e2c0b99 /src/parsers.h
parentad1ac0b8fd8c9d5e7f007791038923c0fca37b4b (diff)
downloadNinja-aeda4872d35137bdac0b2d7a313ec6f82b993b13.zip
Ninja-aeda4872d35137bdac0b2d7a313ec6f82b993b13.tar.gz
Ninja-aeda4872d35137bdac0b2d7a313ec6f82b993b13.tar.bz2
refactor parse error messages
Diffstat (limited to 'src/parsers.h')
-rw-r--r--src/parsers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parsers.h b/src/parsers.h
index 55417cd..13fdf25 100644
--- a/src/parsers.h
+++ b/src/parsers.h
@@ -43,6 +43,8 @@ struct Tokenizer {
void Start(const char* start, const char* end);
bool Error(const string& message, string* err);
+ // Call Error() with "expected foo, got bar".
+ bool ErrorExpected(const string& expected, string* err);
const Token& token() const { return token_; }