mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
timew: Instantiates a parser
This commit is contained in:
parent
bc22348822
commit
9569b5dcc3
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <cmake.h>
|
||||
#include <Grammar.h>
|
||||
#include <LR0.h>
|
||||
#include <iostream>
|
||||
#include <new>
|
||||
#include <cstring>
|
||||
|
@ -54,6 +55,11 @@ int main (int argc, const char** argv)
|
|||
grammar.loadFromFile (file);
|
||||
std::cout << grammar.dump ();
|
||||
|
||||
// Instantiate the parser.
|
||||
LR0 lr0;
|
||||
lr0.createParseTables (grammar);
|
||||
std::cout << lr0.dump ();
|
||||
|
||||
// TODO Parse CLI.
|
||||
|
||||
// TODO Load rules grammar.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue