#include <ImpParser.h>
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) |
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.
curToken | the token stream | |
whoBelongs | the VariableTableTemplate the code will belong to | |
ifInit | if the code is init code |