#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 TRACE_CTOR.
Definition at line 111 of file query.h.
References TRACE_CTOR.
|
inline |
Definition at line 115 of file query.h.
References TRACE_DTOR.
|
inline |
Definition at line 127 of file query.h.
References END_REACHED, and kind.
Definition at line 119 of file query.h.
References ledger::downcast(), kind, and value.
|
inline |
|
inline |
enum ledger::query_t::lexer_t::token_t::kind_t ledger::query_t::lexer_t::token_t::kind |
Definition at line 104 of file query.h.
Referenced by operator=(), and to_string().