- Cleaned up ::validate, added notes for further validation.
- Removed obsolete comments.
This commit is contained in:
Paul Beckingham 2014-04-20 10:27:47 -04:00
parent e05610d1d7
commit 0771ee2399
2 changed files with 4 additions and 7 deletions

View file

@ -978,12 +978,12 @@ void A3t::validate ()
std::vector <Tree*>::iterator i; std::vector <Tree*>::iterator i;
for (i = _tree->_branches.begin (); i != _tree->_branches.end (); ++i) for (i = _tree->_branches.begin (); i != _tree->_branches.end (); ++i)
if ((*i)->hasTag ("?")) if ((*i)->hasTag ("?"))
// TODO Restore the exception, when functionality is high enough to
// tolerate it.
//throw std::string ("Unrecognized argument '") + (*i)->attribute ("raw") + "'"; //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.
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View file

@ -68,15 +68,12 @@ private:
void findModifications (); void findModifications ();
void validate (); void validate ();
// TODO Resolve aliases
// TODO Inject defaults
// TODO Extract filter // TODO Extract filter
// TODO Extract words // TODO Extract words
// TODO Extract modifications // TODO Extract modifications
// TODO Prepare infix // TODO Prepare infix
// TODO Expand operators // TODO Expand operators
// TODO Expand sequence // TODO Expand sequence
// TODO Convert to postfix - not necessary given parse tree?
private: private:
Tree* _tree; Tree* _tree;