mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
gr: After initalizing LR0 with grammar, calls parse on input
This commit is contained in:
parent
8cd6fd2a5f
commit
123973b634
1 changed files with 2 additions and 3 deletions
|
@ -91,14 +91,13 @@ int main (int argc, char** argv)
|
||||||
grammar.debug (debug);
|
grammar.debug (debug);
|
||||||
grammar.loadFromFile (file);
|
grammar.loadFromFile (file);
|
||||||
|
|
||||||
// TODO Test commandLine against grammar.
|
// Test commandLine against grammar.
|
||||||
if (commandLine != "")
|
if (commandLine != "")
|
||||||
{
|
{
|
||||||
LR0 lr0;
|
LR0 lr0;
|
||||||
lr0.debug (debug);
|
lr0.debug (debug);
|
||||||
lr0.initialize (grammar);
|
lr0.initialize (grammar);
|
||||||
|
lr0.parse (commandLine);
|
||||||
// TODO Run the parser.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue