Hello,
could somebody please point out to me what is wrong with the following rule?
Ie. How to skip nodes in the output tree properly?
unbrace_expr!
: ex:expr
{
// remove last pair of braces
if( #ex->getType()==EXPR)
#unbrace_expr= #( NULL, ex->getFirstChild());
else
#unbrace_expr= #( NULL, ex);
}
Thanks,
marc