FreePOOMA  2.4.1
Public Member Functions
Token Class Reference

#include <Parser.h>

List of all members.

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

Constructor & Destructor Documentation

Token::Token ( const string &  str) [inline]
Token::Token ( const string &  str,
int  pos,
int  len,
TokenType  type,
int  line 
) [inline]

Member Function Documentation

void Token::set ( int  pos,
int  len,
TokenType  type,
int  line 
) [inline]

References line(), and type().

Referenced by Lexer::nextToken().

string Token::text ( ) const [inline]

Referenced by operator<<().

TokenType Token::type ( ) const [inline]
int Token::line ( ) const [inline]

Referenced by Lexer::matchCurrent(), and set().

int Token::isKeyword ( ) const [inline]

The documentation for this class was generated from the following file: