A3t
- Relocated calls to findCommand, findUUIDList, findIdSequence from A3t::parse to Context::initialize.
This commit is contained in:
@@ -120,14 +120,11 @@ Tree* A3t::parse ()
|
|||||||
{
|
{
|
||||||
findBinary ();
|
findBinary ();
|
||||||
findTerminator ();
|
findTerminator ();
|
||||||
findCommand ();
|
|
||||||
findSubstitution ();
|
findSubstitution ();
|
||||||
findPattern ();
|
findPattern ();
|
||||||
findTag ();
|
findTag ();
|
||||||
findAttribute ();
|
findAttribute ();
|
||||||
findAttributeModifier ();
|
findAttributeModifier ();
|
||||||
findUUIDList (); // Before findIdSequence
|
|
||||||
findIdSequence ();
|
|
||||||
findOperator ();
|
findOperator ();
|
||||||
|
|
||||||
validate ();
|
validate ();
|
||||||
|
|||||||
@@ -45,6 +45,10 @@ public:
|
|||||||
|
|
||||||
void findFileOverride ();
|
void findFileOverride ();
|
||||||
void findConfigOverride ();
|
void findConfigOverride ();
|
||||||
|
void findCommand ();
|
||||||
|
void findIdSequence ();
|
||||||
|
void findUUIDList ();
|
||||||
|
|
||||||
void get_overrides (std::string&, File&);
|
void get_overrides (std::string&, File&);
|
||||||
void get_data_location (Path&);
|
void get_data_location (Path&);
|
||||||
void apply_overrides ();
|
void apply_overrides ();
|
||||||
@@ -54,14 +58,11 @@ public:
|
|||||||
private:
|
private:
|
||||||
void findBinary ();
|
void findBinary ();
|
||||||
void findTerminator ();
|
void findTerminator ();
|
||||||
void findCommand ();
|
|
||||||
void findPattern ();
|
void findPattern ();
|
||||||
void findSubstitution ();
|
void findSubstitution ();
|
||||||
void findTag ();
|
void findTag ();
|
||||||
void findAttribute ();
|
void findAttribute ();
|
||||||
void findAttributeModifier ();
|
void findAttributeModifier ();
|
||||||
void findIdSequence ();
|
|
||||||
void findUUIDList ();
|
|
||||||
void findOperator ();
|
void findOperator ();
|
||||||
void validate ();
|
void validate ();
|
||||||
|
|
||||||
|
|||||||
@@ -195,6 +195,12 @@ int Context::initialize (int argc, const char** argv)
|
|||||||
for (op = operators.begin (); op != operators.end (); ++op)
|
for (op = operators.begin (); op != operators.end (); ++op)
|
||||||
a3t.entity ("operator", *op);
|
a3t.entity ("operator", *op);
|
||||||
|
|
||||||
|
// Now the entities are loaded, parsing may resume.
|
||||||
|
a3t.findCommand (); // <cmd>
|
||||||
|
a3t.findUUIDList (); // <uuid> Before findIdSequence
|
||||||
|
a3t.findIdSequence (); // <id>
|
||||||
|
a3t.inject_defaults (); // rc.default.command
|
||||||
|
|
||||||
// Static initialization to decouple code.
|
// Static initialization to decouple code.
|
||||||
staticInitialization ();
|
staticInitialization ();
|
||||||
|
|
||||||
@@ -205,7 +211,6 @@ int Context::initialize (int argc, const char** argv)
|
|||||||
|
|
||||||
// Handle default command and assumed 'info' command.
|
// Handle default command and assumed 'info' command.
|
||||||
a3.inject_defaults ();
|
a3.inject_defaults ();
|
||||||
a3t.inject_defaults ();
|
|
||||||
|
|
||||||
// The re-categorization allows all injected arguments to be properly given
|
// The re-categorization allows all injected arguments to be properly given
|
||||||
// a category.
|
// a category.
|
||||||
|
|||||||
Reference in New Issue
Block a user