Entity Lists

- LRParser::addEntity accumulates categorized entities for the parser.
This commit is contained in:
Paul Beckingham 2013-08-30 11:40:38 -07:00
parent 888a77213a
commit 66bcf26aa0
3 changed files with 18 additions and 2 deletions

View file

@ -103,9 +103,14 @@ int main (int argc, char** argv)
LRParser p;
if (verbose) p.verbose ();
p.grammar (grammar);
// TODO Initialize entity lists.
p.addEntity ("report", "list");
// Load and verify grammar.
p.grammar (grammar);
if (verbose) p.dump ();
// Either returns a parse-tree or throws.
Tree* t = p.parse (commandLine);
if (t)
{