Parser Integration

- New parser integrated and functioning, but only shadows the A3 parser.  In
  debug mode, there is new output, but that's all that happenѕ.
This commit is contained in:
Paul Beckingham
2013-09-01 14:14:15 -04:00
parent 9ee17a5b51
commit 314d0e9d01
4 changed files with 26 additions and 2 deletions

View File

@@ -81,6 +81,16 @@ int Context::initialize (int argc, const char** argv)
try
{
// BEGIN EXPERIMENTAL CODE
// Initialize the command line parser.
a3t.initialize (argc, argv);
Tree* parseTree = a3t.parse ();
// END EXPERIMENTAL CODE
// char** argv --> std::vector <std::string> Context::a3.
a3.capture (argc, argv);
@@ -165,6 +175,18 @@ int Context::initialize (int argc, const char** argv)
a3.categorize ();
a3.dump ("Context::initialize");
// BEGIN EXPERIMENTAL CODE
// Initialize the command line parser.
if (parseTree && config.getBoolean ("debug"))
parseTree->dump ();
// END EXPERIMENTAL CODE
// TODO Instantiate extension command objects.
// TODO Instantiate default command object.