Beispiel #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--;
 }
Beispiel #2
0
 public override void visit(CaseBranch br)
 {
     br.expr.accept(this);
     br.type = br.expr.type;
 }
Beispiel #3
0
 public abstract void visit(CaseBranch caseBranch);
Beispiel #4
0
 public override void visit(CaseBranch branch)
 {
     branch.expr.accept(this);
 }