Added followSets(Symbol*) function to compute follow sets.
This commit is contained in:
@@ -25,6 +25,8 @@ class Parser {
|
||||
void loadGrammer(std::string grammerInputString);
|
||||
std::vector<Symbol*>* firstSet(Symbol* token);
|
||||
void printFirstSets();
|
||||
std::vector<Symbol*>* followSet(Symbol* token);
|
||||
void printFollowSets();
|
||||
void createStateSet();
|
||||
void closure(State* state);
|
||||
void addStates(std::vector< State* >* stateSets, State* state);
|
||||
|
||||
Reference in New Issue
Block a user