From fc5dad7a9ae53b7eda9d184fea4de872ef3a2d54 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 31 May 2014 22:17:56 -0400 Subject: [PATCH] Parser - Now that all (?) Parser methods for tree scanning can be called more than once, move all methods into the ::parse method. --- src/Context.cpp | 3 +-- src/Parser.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 68a04ebe2..11dce4a8b 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -381,8 +381,7 @@ int Context::run () } //////////////////////////////////////////////////////////////////////////////// -// Locate and dispatch to the command whose keyword matches via autoComplete -// with the earliest argument. +// Dispatch to the command found by the parser. int Context::dispatch (std::string &out) { // Autocomplete args against keywords. diff --git a/src/Parser.cpp b/src/Parser.cpp index ba82087cc..9eae2e256 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -144,13 +144,21 @@ Tree* Parser::tree () //////////////////////////////////////////////////////////////////////////////// Tree* Parser::parse () { + findBinary (); findTerminator (); + + findOverrides (); + applyOverrides (); + findSubstitution (); findPattern (); findTag (); findAttribute (); findAttributeModifier (); findOperator (); + findCommand (); + findUUIDList (); + findIdSequence (); findFilter (); findModifications ();