More work towards RNGLR. First, NodeTree is now a template. Second, I've started writing the actual GLR parser and GSS and other things, but am still in the first write process.
This commit is contained in:
@@ -33,7 +33,7 @@ class Parser {
|
||||
int stateNum(State* state);
|
||||
std::string stateSetToString();
|
||||
|
||||
NodeTree* parseInput(std::string inputString);
|
||||
NodeTree<Symbol*>* parseInput(std::string inputString);
|
||||
|
||||
std::string grammerToString();
|
||||
std::string grammerToDOT();
|
||||
@@ -60,7 +60,7 @@ class Parser {
|
||||
std::stack<Symbol*> symbolStack;
|
||||
|
||||
Symbol* getOrAddSymbol(std::string symbolString, bool isTerminal);
|
||||
NodeTree* reduceTreeCombine(Symbol* newSymbol, std::vector<Symbol*> &symbols);
|
||||
NodeTree<Symbol*>* reduceTreeCombine(Symbol* newSymbol, std::vector<Symbol*> &symbols);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user