CmdDenotate
- Converted from Parser to CLI.
This commit is contained in:
@@ -66,18 +66,16 @@ int CmdDenotate::execute (std::string& output)
|
|||||||
|
|
||||||
// Extract all the ORIGINAL MODIFICATION args as simple text patter.
|
// Extract all the ORIGINAL MODIFICATION args as simple text patter.
|
||||||
std::string pattern = "";
|
std::string pattern = "";
|
||||||
std::vector <Tree*>::iterator arg;
|
std::vector <A>::iterator a;
|
||||||
for (arg = context.parser.tree ()->_branches.begin ();
|
for (a = context.cli._args.begin (); a != context.cli._args.end (); ++a)
|
||||||
arg != context.parser.tree ()->_branches.end ();
|
|
||||||
++arg)
|
|
||||||
{
|
{
|
||||||
if ((*arg)->hasTag ("ORIGINAL") &&
|
if (a->hasTag ("ORIGINAL") &&
|
||||||
(*arg)->hasTag ("MODIFICATION"))
|
a->hasTag ("MODIFICATION"))
|
||||||
{
|
{
|
||||||
if (pattern != "")
|
if (pattern != "")
|
||||||
pattern += ' ';
|
pattern += ' ';
|
||||||
|
|
||||||
pattern += (*arg)->attribute ("raw");
|
pattern += a->attribute ("raw");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user