示例#1
0
 public override void visit(CaseBranch caseBranch)
 {
     for (int i = 0; i < depth * 2; i++)
     {
         sw.Write(" ");
     }
     depth++;
     sw.WriteLine("_casebranch ( " + caseBranch.name + ") : " + caseBranch.type);
     caseBranch.expr.accept(this);
     depth--;
 }
示例#2
0
 public override void visit(CaseBranch br)
 {
     br.expr.accept(this);
     br.type = br.expr.type;
 }
示例#3
0
 public abstract void visit(CaseBranch caseBranch);
示例#4
0
 public override void visit(CaseBranch branch)
 {
     branch.expr.accept(this);
 }