diff options
author | Evan Martin <martine@danga.com> | 2011-02-04 00:51:51 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-02-04 00:51:51 (GMT) |
commit | aeda4872d35137bdac0b2d7a313ec6f82b993b13 (patch) | |
tree | 799868c6bc2ce78ce10cf6310173e1b54e2c0b99 /src/parsers.h | |
parent | ad1ac0b8fd8c9d5e7f007791038923c0fca37b4b (diff) | |
download | Ninja-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.h | 2 |
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_; } |