Added a firstSet(Symbol*) function that takes in a Symbol* and returns a vector of Symbol* s that are the first set of the first Symbol*.

This commit is contained in:
Nathan Braswell
2013-06-13 19:11:31 -04:00
parent 0c651a5d9e
commit da6e5f3de9
3 changed files with 41 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ class Parser {
~Parser();
void loadGrammer(std::string grammerInputString);
std::vector<Symbol*>* firstSet(Symbol* token);
void printFirstSets();
void createStateSet();
void closure(State* state);
void addStates(std::vector< State* >* stateSets, State* state);