Schnek
schnek::Token Class Reference

Public Member Functions

 Token (std::string filename_, int line_, int token_, std::string str_="")
 Construct a token.
 
 Token (const Token &t)
 Copy constructor.
 
Tokenoperator= (const Token &t)
 
std::string getFilename () const
 Returns the name of the file from which the token was read.
 
int getLine () const
 Returns the line number where the token was encountered.
 
int getToken () const
 Returns the token id.
 
std::string getString () const
 Returns the string constant associated with the token.
 

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