gr: After initalizing LR0 with grammar, calls parse on input

This commit is contained in:
Paul Beckingham 2016-01-09 22:06:48 -05:00
parent 8cd6fd2a5f
commit 123973b634

View file

@ -91,14 +91,13 @@ int main (int argc, char** argv)
grammar.debug (debug);
grammar.loadFromFile (file);
// TODO Test commandLine against grammar.
// Test commandLine against grammar.
if (commandLine != "")
{
LR0 lr0;
lr0.debug (debug);
lr0.initialize (grammar);
// TODO Run the parser.
lr0.parse (commandLine);
}
}