TokenSource Class Reference

A source of tokens. This class is the thing that takes source files and such into a stream of tokens. DeclParser takes this and thats its main (currently only) use. More...

#include <TokenSource.h>

List of all members.

Public Member Functions

 TokenSource ()
 Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.
 ~TokenSource ()
 Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.
void setFileInput (std::string &fileName)
 Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.
TokenIterator getIterator ()
 Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.
TokenIterator getEndIterator ()
 Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.

Static Public Member Functions

static void assertTokenType (int correctType, TokenIterator &curToken, char *errorStr)
static void assertTokenNotEnd (TokenIterator &curToken)

Private Attributes

int sourceType
std::list< Token > tokenList


Detailed Description

A source of tokens. This class is the thing that takes source files and such into a stream of tokens. DeclParser takes this and thats its main (currently only) use.


Constructor & Destructor Documentation

TokenSource::TokenSource (  ) 

Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.

Parameters:
curToken the current token iterator
argOut the already allocated arg list to build on

TokenSource::~TokenSource (  ) 

Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.

Parameters:
curToken the current token iterator
argOut the already allocated arg list to build on


Member Function Documentation

void TokenSource::setFileInput ( std::string &  fileName  ) 

Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.

Parameters:
curToken the current token iterator
argOut the already allocated arg list to build on

std::list< Token >::iterator TokenSource::getIterator (  ) 

Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.

Parameters:
curToken the current token iterator
argOut the already allocated arg list to build on

std::list< Token >::iterator TokenSource::getEndIterator (  ) 

Parses argument list like constructs. This parses any argument list like constructs. It only support constants right now.

Parameters:
curToken the current token iterator
argOut the already allocated arg list to build on


The documentation for this class was generated from the following files:
Generated on Fri Apr 27 10:27:38 2007 for Green Engine by  doxygen 1.5.1