Schnek
schnek::TokenList Class Reference

Public Types

typedef std::list< Token >::const_iterator const_iterator
 

Public Member Functions

 TokenList (std::string filename_)
 Default constructor.
 
void reset (std::string filename_)
 Empties the list and reassigns the filename.
 
void reset ()
 Empties the list and reassigns the filename.
 
void insert (int line, int token)
 Insert an individual token onto the list.
 
void insert (int line, int token, char *str, size_t len)
 
void insert (const TokenList &tokens)
 
const_iterator begin () const
 Returns an iterator to the beginning of the list.
 
const_iterator end () const
 Returns an iterator to the end of the list.
 

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