Parser
- Now that all (?) Parser methods for tree scanning can be called more than once, move all methods into the ::parse method.
This commit is contained in:
@@ -381,8 +381,7 @@ int Context::run ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Locate and dispatch to the command whose keyword matches via autoComplete
|
// Dispatch to the command found by the parser.
|
||||||
// with the earliest argument.
|
|
||||||
int Context::dispatch (std::string &out)
|
int Context::dispatch (std::string &out)
|
||||||
{
|
{
|
||||||
// Autocomplete args against keywords.
|
// Autocomplete args against keywords.
|
||||||
|
|||||||
@@ -144,13 +144,21 @@ Tree* Parser::tree ()
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
Tree* Parser::parse ()
|
Tree* Parser::parse ()
|
||||||
{
|
{
|
||||||
|
findBinary ();
|
||||||
findTerminator ();
|
findTerminator ();
|
||||||
|
|
||||||
|
findOverrides ();
|
||||||
|
applyOverrides ();
|
||||||
|
|
||||||
findSubstitution ();
|
findSubstitution ();
|
||||||
findPattern ();
|
findPattern ();
|
||||||
findTag ();
|
findTag ();
|
||||||
findAttribute ();
|
findAttribute ();
|
||||||
findAttributeModifier ();
|
findAttributeModifier ();
|
||||||
findOperator ();
|
findOperator ();
|
||||||
|
findCommand ();
|
||||||
|
findUUIDList ();
|
||||||
|
findIdSequence ();
|
||||||
findFilter ();
|
findFilter ();
|
||||||
findModifications ();
|
findModifications ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user