Public Member Functions | |
KRatExpToken (const token_e &tok) | |
KRatExpToken () | |
std::string | to_string () const |
bool | is_just_a (const token_e tok) |
bool | is_defined () |
bool | is_schrod () |
bool | is_a (const token_e tok) |
MonoidValue | as_word () |
SemiringEltValue | as_weight () |
KRatExpToken & | operator= (const token_e tok) |
KRatExpToken & | operator= (const MonoidValue &word_value) |
KRatExpToken & | operator= (const SemiringEltValue &weight_value) |
void | reset () |
Classes | |
struct | token |
Simple token. More... |
Tokens are ambiguous. For example, '1' could be interpreted both as a weight and as the empty word. So we assume that each possible token is in fact part of the *same* token. This is the Schrödinger's token this class represents.
KRatExpToken::token
, token_e
Definition at line 76 of file krat_exp_parser.hxx.