public override void CaseAParenExp(AParenExp node)
 {
     InAParenExp(node);
     if (node.GetExp() != null)
     {
         node.GetExp().Apply(this);
     }
     OutAParenExp(node);
 }
 public override void OutAParenExp(AParenExp node)
 {
     data.ExpTypes[node] = data.ExpTypes[node.GetExp()];
     base.OutAParenExp(node);
 }
示例#3
0
 public override void CaseAParenExp(AParenExp node)
 {
     PExp replacer = node.GetExp();
     node.ReplaceBy(replacer);
     replacer.Apply(this);
 }
 public override void CaseAParenExp(AParenExp node)
 {
     Write("(");
     node.GetExp().Apply(this);
     Write(")");
 }