Null rules work in RNGLR now, but there seems to be a bug where somehow some states/rules get no lookahead.
This commit is contained in:
@@ -33,8 +33,6 @@ class ParseRule {
|
||||
int getRightSize();
|
||||
int getIndex();
|
||||
|
||||
std::vector<NodeTree<Symbol*>*>* nullReductions();
|
||||
|
||||
bool advancePointer();
|
||||
bool isAtEnd();
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ class RNGLRParser: public Parser {
|
||||
void reducer(int i);
|
||||
void shifter(int i);
|
||||
void addStates(std::vector< State* >* stateSets, State* state);
|
||||
bool reducesToNull(ParseRule* rule);
|
||||
bool reducesToNull(ParseRule* rule, std::vector<Symbol*> avoidList);
|
||||
private:
|
||||
std::vector<Symbol*> input;
|
||||
GraphStructuredStack gss;
|
||||
|
||||
Reference in New Issue
Block a user