Changed Table to store vectors of actions, changed Parser appropriately.
This commit is contained in:
@@ -13,10 +13,10 @@ class Table {
|
||||
~Table();
|
||||
void setSymbols(Symbol* EOFSymbol, Symbol* nullSymbol);
|
||||
void add(int stateNum, Symbol* tranSymbol, ParseAction* action);
|
||||
ParseAction* get(int state, Symbol* token);
|
||||
std::vector<ParseAction*>* get(int state, Symbol* token);
|
||||
std::string toString();
|
||||
private:
|
||||
std::vector< std::vector<ParseAction*>* > table;
|
||||
std::vector< std::vector< std::vector<ParseAction*>* >* > table;
|
||||
std::vector<Symbol*> symbolIndexVec;
|
||||
//The EOFSymbol, a pointer because of use in table, etc
|
||||
Symbol* EOFSymbol;
|
||||
|
||||
Reference in New Issue
Block a user