|
FreePOOMA
2.4.1
|
#include <Parser.h>
Public Member Functions | |
| Lexer (istream &is, const string &fn) | |
| TokenType | addKeyword (const string &kw) |
| const Token & | nextToken () |
| const Token & | currentToken () |
| void | matchCurrent (TokenType type) |
| void | matchNext (TokenType type) |
| Lexer::Lexer | ( | istream & | is, |
| const string & | fn | ||
| ) | [inline] |
| TokenType Lexer::addKeyword | ( | const string & | kw | ) | [inline] |
References std::endl().
Referenced by Parser< Descriptor >::addKeyword().
| const Token& Lexer::nextToken | ( | ) | [inline] |
References std::endl(), EOFile, EOL, EQUALS, GROUP, PREFIX, SEP, Token::set(), STRING, SUFFIX, and TEXTTOKEN.
Referenced by matchNext(), and Parser< Descriptor >::parse().
| const Token& Lexer::currentToken | ( | ) | [inline] |
Referenced by Parser< Descriptor >::parse().
| void Lexer::matchCurrent | ( | TokenType | type | ) | [inline] |
References std::endl(), Token::line(), and Token::type().
Referenced by matchNext().
| void Lexer::matchNext | ( | TokenType | type | ) | [inline] |
References matchCurrent(), and nextToken().
1.7.6.1