예제 #1
0
 public override void visit(BoolConst boolConst)
 {
     for (int i = 0; i < depth * 2; i++)
     {
         sw.Write(" ");
     }
     sw.WriteLine("_boolconst(" + boolConst.value + ") : " + boolConst.type);
 }
예제 #2
0
 public override void visit(BoolConst bool_const)
 {
     if (bool_const.value)
     {
         emit_la("a0", "bool_const1");
     }
     else
     {
         emit_la("a0", "bool_const0");
     }
 }
예제 #3
0
 public override void visit(BoolConst boolean)
 {
     boolean.type = Constants.BOOLEAN;
 }
예제 #4
0
 public abstract void visit(BoolConst boolConst);