Token Class Reference

#include <Parser.h>

Collaboration diagram for Token:

Collaboration graph
[legend]

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:

Generated on Wed Mar 16 06:20:39 2011 for FreePOOMA by  doxygen 1.5.9