mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
a86408c5a3
commit
fc5dad7a9a
2 changed files with 9 additions and 2 deletions
|
@ -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 ();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue