mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
gr: Instantiates a parser
This commit is contained in:
parent
9569b5dcc3
commit
791e870eda
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <cmake.h>
|
||||
#include <FS.h>
|
||||
#include <Grammar.h>
|
||||
#include <LR0.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <stdlib.h>
|
||||
|
@ -92,6 +93,11 @@ int main (int argc, char** argv)
|
|||
// TODO Test commandLine against grammar.
|
||||
if (commandLine != "")
|
||||
{
|
||||
LR0 lr0;
|
||||
lr0.createParseTables (grammar);
|
||||
std::cout << lr0.dump ();
|
||||
|
||||
// TODO Run the parser.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue