diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-22 21:16:43 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-22 21:16:43 -0400 |
commit | 812d38c176b76b0fda5228338f5c5d70b3c6edf1 (patch) | |
tree | 75b50d517d948fe6808dcc1fc3b9e6594fb573fb /src/token.h | |
parent | d9e97cfede4afcda55eaa8defaaa63c0c18065b1 (diff) | |
download | fork-ledger-812d38c176b76b0fda5228338f5c5d70b3c6edf1.tar.gz fork-ledger-812d38c176b76b0fda5228338f5c5d70b3c6edf1.tar.bz2 fork-ledger-812d38c176b76b0fda5228338f5c5d70b3c6edf1.zip |
Correctly report the line context when there is a valexpr parsing error.
Diffstat (limited to 'src/token.h')
-rw-r--r-- | src/token.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/token.h b/src/token.h index 5502ad94..904a2e52 100644 --- a/src/token.h +++ b/src/token.h @@ -39,6 +39,7 @@ namespace ledger { struct expr_t::token_t : public noncopyable { enum kind_t { + ERROR, // an error occurred while tokenizing VALUE, // any kind of literal value IDENT, // [A-Za-z_][-A-Za-z0-9_:]* MASK, // /regexp/ @@ -109,8 +110,7 @@ struct expr_t::token_t : public noncopyable void next(std::istream& in, const uint_least8_t flags); void rewind(std::istream& in); void unexpected(); - - static void expected(char wanted, char c = '\0'); + void expected(char wanted, char c = '\0'); }; } // namespace ledger |