Changed followset to work on states, fixed many bugs. Kraken now should have a fairly legitimate LALR(1) parser. (null productions have not yet been added.)

This commit is contained in:
Nathan Braswell
2013-06-23 05:06:38 -04:00
parent 17dd186373
commit a307e1f143
5 changed files with 88 additions and 34 deletions

View File

@@ -69,8 +69,6 @@ int main(int argc, char* argv[]) {
std::cout << programInputFileString << std::endl;
NodeTree* parseTree = parser.parseInput(new Lexer(programInputFileString));
parser.printFirstSets();
parser.printFollowSets();
if (parseTree) {
std::cout << parseTree->DOTGraphString() << std::endl;