KRatExpToken Class Template Reference
[Series]

Schrödinger's token for rational expression lexing. More...

List of all members.

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 ()
KRatExpTokenoperator= (const token_e tok)
KRatExpTokenoperator= (const MonoidValue &word_value)
KRatExpTokenoperator= (const SemiringEltValue &weight_value)
void reset ()

Classes

struct  token
 Simple token. More...


Detailed Description

template<class MonoidValue, class SemiringEltValue>
class vcsn::algebra::KRatExpToken< MonoidValue, SemiringEltValue >

Schrödinger's token for rational expression lexing.

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.

See also:
KRatExpToken::token, token_e

Definition at line 76 of file krat_exp_parser.hxx.


Generated on Sat Jul 29 17:31:38 2006 for Vaucanson by  doxygen 1.4.6