#include <token.h>
Inherits boost::noncopyable.
|
| 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
} |
Definition at line 48 of file token.h.
◆ kind_t
| Enumerator |
|---|
| 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 | |
Definition at line 50 of file token.h.
◆ token_t()
| ledger::expr_t::token_t::token_t |
( |
| ) |
|
|
inlineexplicit |
◆ ~token_t()
| ledger::expr_t::token_t::~token_t |
( |
| ) |
|
| throw | ( | ) | | | |
|
inline |
◆ clear()
| void ledger::expr_t::token_t::clear |
( |
| ) |
|
|
inline |
◆ expected() [1/2]
| void ledger::expr_t::token_t::expected |
( |
const char | wanted, |
|
|
const int | c ) |
◆ expected() [2/2]
| void ledger::expr_t::token_t::expected |
( |
const kind_t | wanted | ) |
|
◆ next()
| void ledger::expr_t::token_t::next |
( |
std::istream & | in, |
|
|
const parse_flags_t & | flags ) |
◆ operator=()
◆ parse_ident()
| void ledger::expr_t::token_t::parse_ident |
( |
std::istream & | in | ) |
|
◆ parse_reserved_word()
| int ledger::expr_t::token_t::parse_reserved_word |
( |
std::istream & | in | ) |
|
◆ rewind()
| void ledger::expr_t::token_t::rewind |
( |
std::istream & | in | ) |
|
◆ unexpected()
| void ledger::expr_t::token_t::unexpected |
( |
const char | wanted = '\0' | ) |
|
◆ kind
◆ length
| std::size_t ledger::expr_t::token_t::length |
◆ symbol
| char ledger::expr_t::token_t::symbol[6] |
◆ value
| value_t ledger::expr_t::token_t::value |
The documentation for this struct was generated from the following file: