green::ImpParser Class Reference

The class for parsing imperative code. This class is the parser for imperative sections. The only function parseImperative does just that. More...

#include <ImpParser.h>

List of all members.

Public Member Functions

UnresOpSeqPtr parseImperative (TokenIterator &curToken, VariableTableTemplatePtr whoBelongs, int ifInit)
 This parses an imperative section. This is the main parsing function for imperative sections. It also sets the VariableTable the code belongs to as well as if its an init.

Private Member Functions

void parseBinOp (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseUnOp (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseCall (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseGoto (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseGotoif (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseLabel (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseDeclare (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseVarLit (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
void parseVarOnly (TokenIterator &curToken, UnresOpSeqPtr unOpSeq)
OpSeq::OperatorEnum convertBinOp (TokenIterator &curToken)
OpSeq::OperatorEnum convertUnaryOp (TokenIterator &curToken)
OpSeq::OperatorEnum convertGotoOp (TokenIterator &curToken)
OpSeq::FuncEnum resolveFuncName (std::string &funcName)


Detailed Description

The class for parsing imperative code. This class is the parser for imperative sections. The only function parseImperative does just that.


Member Function Documentation

UnresOpSeqPtr ImpParser::parseImperative ( TokenIterator &  curToken,
VariableTableTemplatePtr  whoBelongs,
int  ifInit 
)

This parses an imperative section. This is the main parsing function for imperative sections. It also sets the VariableTable the code belongs to as well as if its an init.

Parameters:
curToken the token stream
whoBelongs the VariableTableTemplate the code will belong to
ifInit if the code is init code
Returns:
the unresolved code allocated and parsed to


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