- Modified ::getWords to look at all nodes, including parents.
This commit is contained in:
Paul Beckingham 2014-08-22 16:07:31 -04:00
parent 8376d99e88
commit 079669e73b

View file

@ -797,7 +797,7 @@ const std::vector <std::string> Parser::getWords () const
{
std::vector <std::string> words;
std::vector <Tree*> nodes;
collect (nodes, collectTerminated);
collect (nodes, collectAll);
std::vector <Tree*>::iterator i;
for (i = nodes.begin (); i != nodes.end (); ++i)
{