Expression reboot

- Downgraded A3::extract_words to return a simple vector of strings.
  Any more is unnecessary.
This commit is contained in:
Paul Beckingham
2011-07-24 16:44:05 -04:00
parent b30b187b4c
commit 67fb1e9be4
3 changed files with 5 additions and 8 deletions

View File

@@ -574,13 +574,13 @@ const A3 A3::extract_modifications () const
mods.push_back (*arg);
}
return mods;
return tokenize (mods);
}
////////////////////////////////////////////////////////////////////////////////
const A3 A3::extract_words () const
const std::vector <std::string> A3::extract_words () const
{
A3 words;
std::vector <std::string> words;
std::vector <Arg>::const_iterator arg;
for (arg = this->begin (); arg != this->end (); ++arg)
{
@@ -592,7 +592,7 @@ const A3 A3::extract_words () const
;
else
words.push_back (*arg);
words.push_back (arg->_raw);
}
return words;