Public Methods | |
| void | lex_error (const std::string &msg="Lex error.") | 
| Put the lexer into an error state. | |
| void | lex (const std::string &in, const Element< S, T > &e) | 
| Perform lexing. More... | |
| bool | error () const | 
| Return true when an error occured. | |
| const std::string & | error_msg () const | 
| Return the error message. | |
| krat_exp_token_t | first () const | 
| Return the first token. | |
| krat_exp_token_t | second () const | 
| Return the second token. | |
| void | eat () | 
| Shift tokens. More... | |
      
  | 
  ||||||||||||
| 
 Perform lexing. 
 
  | 
  
      
  | 
  
| 
 Shift tokens. Remove the first token from the token stream. So second becames first, third becames second, and so on...  | 
  
1.2.14 written by Dimitri van Heesch,
 © 1997-2002