#include <token.h>
Inherits boost::noncopyable.
Public Types | |
enum | kind_t { ERROR , VALUE , IDENT , MASK , LPAREN , RPAREN , LBRACE , RBRACE , EQUAL , NEQUAL , LESS , LESSEQ , GREATER , GREATEREQ , ASSIGN , MATCH , NMATCH , MINUS , PLUS , STAR , SLASH , ARROW , KW_DIV , EXCLAM , KW_AND , KW_OR , KW_MOD , KW_IF , KW_ELSE , QUERY , COLON , DOT , COMMA , SEMI , TOK_EOF , UNKNOWN } |
Public Member Functions | |
void | clear () |
void | expected (const char wanted, const int c) |
void | expected (const kind_t wanted) |
void | next (std::istream &in, const parse_flags_t &flags) |
token_t & | operator= (const token_t &other) |
void | parse_ident (std::istream &in) |
int | parse_reserved_word (std::istream &in) |
void | rewind (std::istream &in) |
token_t () | |
void | unexpected (const char wanted='\0') |
~token_t () throw () | |
Public Attributes | |
enum ledger::expr_t::token_t::kind_t | kind |
std::size_t | length |
char | symbol [6] |
value_t | value |
|
inlineexplicit |
Definition at line 102 of file token.h.
References TRACE_CTOR.
|
inline |
Definition at line 105 of file token.h.
References TRACE_DTOR.
|
inline |
void ledger::expr_t::token_t::next | ( | std::istream & | in, |
const parse_flags_t & | flags ) |
Definition at line 109 of file token.h.
References assert, and ledger::downcast().
void ledger::expr_t::token_t::parse_ident | ( | std::istream & | in | ) |
int ledger::expr_t::token_t::parse_reserved_word | ( | std::istream & | in | ) |
void ledger::expr_t::token_t::rewind | ( | std::istream & | in | ) |
enum ledger::expr_t::token_t::kind_t ledger::expr_t::token_t::kind |
Referenced by clear().
std::size_t ledger::expr_t::token_t::length |
char ledger::expr_t::token_t::symbol[6] |
value_t ledger::expr_t::token_t::value |