From 123973b6340fb192e821ac1d1ae3ea713d5c7fbe Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 9 Jan 2016 22:06:48 -0500 Subject: [PATCH] gr: After initalizing LR0 with grammar, calls parse on input --- src/gr.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gr.cpp b/src/gr.cpp index 01772103..58aee171 100644 --- a/src/gr.cpp +++ b/src/gr.cpp @@ -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); } }