#include <query.h>
Public Types | |
enum | kind_t { UNKNOWN , LPAREN , RPAREN , TOK_NOT , TOK_AND , TOK_OR , TOK_EQ , TOK_CODE , TOK_PAYEE , TOK_NOTE , TOK_ACCOUNT , TOK_META , TOK_EXPR , TOK_SHOW , TOK_ONLY , TOK_BOLD , TOK_FOR , TOK_SINCE , TOK_UNTIL , TERM , END_REACHED } |
Public Member Functions | |
void | expected (char wanted) |
operator bool () const | |
token_t & | operator= (const token_t &tok) |
string | symbol () const |
string | to_string () const |
token_t (const token_t &tok) | |
token_t (kind_t _kind=UNKNOWN, const optional< string > &_value=none) | |
~token_t () throw () |
Public Attributes | |
enum ledger::query_t::lexer_t::token_t::kind_t | kind |
optional< string > | value |
|
inlineexplicit |
Definition at line 106 of file query.h.
References kind, TRACE_CTOR, UNKNOWN, and value.
Referenced by operator=(), and token_t().
|
inline |
|
inline |
Definition at line 115 of file query.h.
References TRACE_DTOR.
void ledger::query_t::lexer_t::token_t::expected | ( | char | wanted | ) |
|
inline |
Definition at line 127 of file query.h.
References END_REACHED, and kind.
|
inline |
|
inline |
enum ledger::query_t::lexer_t::token_t::kind_t ledger::query_t::lexer_t::token_t::kind |
Referenced by operator bool(), operator=(), symbol(), to_string(), token_t(), token_t(), and ledger::query_t::parser_t::tokens_remaining().
optional<string> ledger::query_t::lexer_t::token_t::value |
Definition at line 104 of file query.h.
Referenced by operator=(), to_string(), token_t(), and token_t().