#include <Parser.h>
Public Member Functions | |
Token (const string &str) | |
Token (const string &str, int pos, int len, TokenType type, int line) | |
void | set (int pos, int len, TokenType type, int line) |
string | text () const |
TokenType | type () const |
int | line () const |
int | isKeyword () const |
Token::Token | ( | const string & | str | ) | [inline] |
Token::Token | ( | const string & | str, | |
int | pos, | |||
int | len, | |||
TokenType | type, | |||
int | line | |||
) | [inline] |
void Token::set | ( | int | pos, | |
int | len, | |||
TokenType | type, | |||
int | line | |||
) | [inline] |
string Token::text | ( | ) | const [inline] |
Referenced by operator<<().
TokenType Token::type | ( | ) | const [inline] |
Referenced by Lexer::matchCurrent(), operator<<(), Parser< Descriptor >::parse(), and set().
int Token::line | ( | ) | const [inline] |
Referenced by Lexer::matchCurrent(), and set().
int Token::isKeyword | ( | ) | const [inline] |