From 0771ee2399bfa1d2777105a2c914775190dc111b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 20 Apr 2014 10:27:47 -0400 Subject: [PATCH] A3t - Cleaned up ::validate, added notes for further validation. - Removed obsolete comments. --- src/A3t.cpp | 8 ++++---- src/A3t.h | 3 --- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/A3t.cpp b/src/A3t.cpp index c31a0b80e..c8fc3186a 100644 --- a/src/A3t.cpp +++ b/src/A3t.cpp @@ -978,12 +978,12 @@ void A3t::validate () std::vector ::iterator i; for (i = _tree->_branches.begin (); i != _tree->_branches.end (); ++i) if ((*i)->hasTag ("?")) - // TODO Restore the exception, when functionality is high enough to - // tolerate it. //throw std::string ("Unrecognized argument '") + (*i)->attribute ("raw") + "'"; - std::cout << "Unrecognized argument '" << (*i)->attribute ("raw") << "'\n"; + //std::cout << "Unrecognized argument '" << (*i)->attribute ("raw") << "'\n"; + context.debug ("Unrecognized argument '" + (*i)->attribute ("raw") + "'"); - // TODO Any RC node must have a root/*[+RC]/data[@file] that exists. + // TODO Any RC node must have a root/+RC @file that exists. + // TODO There must be a root/+CMD. } //////////////////////////////////////////////////////////////////////////////// diff --git a/src/A3t.h b/src/A3t.h index 200ea585f..19b686e65 100644 --- a/src/A3t.h +++ b/src/A3t.h @@ -68,15 +68,12 @@ private: void findModifications (); void validate (); - // TODO Resolve aliases - // TODO Inject defaults // TODO Extract filter // TODO Extract words // TODO Extract modifications // TODO Prepare infix // TODO Expand operators // TODO Expand sequence - // TODO Convert to postfix - not necessary given parse tree? private: Tree* _tree;