diff --git a/src/A3t.cpp b/src/A3t.cpp index 35001e775..d025562e1 100644 --- a/src/A3t.cpp +++ b/src/A3t.cpp @@ -748,7 +748,7 @@ const std::vector A3t::getWords () const } //////////////////////////////////////////////////////////////////////////////// -// /pattern/ +// /pattern/ --> description ~ pattern void A3t::findPattern () { std::vector ::iterator i; @@ -770,7 +770,17 @@ void A3t::findPattern () { (*i)->unTag ("?"); (*i)->tag ("PATTERN"); - (*i)->attribute ("pattern", pattern); + (*i)->tag ("EXPANDED"); + + Tree* branch = (*i)->addBranch (new Tree ("argPat")); + branch->attribute ("value", "description"); + + branch = (*i)->addBranch (new Tree ("argPat")); + branch->attribute ("value", "~"); + branch->tag ("OP"); + + branch = (*i)->addBranch (new Tree ("argPat")); + branch->attribute ("value", pattern); } } }