diff options
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 |