Ejemplo n.º 1
0
 public void Init(Statement s, Express e)
 {
     ex = e;
     st = s;
     if (ex.type != DragonType.Bool)
     {
         ex.PrintError("boolean required in Do");
     }
 }
Ejemplo n.º 2
0
 public If(Express e, Statement s)
 {
     ex = e;
     st = s;
     if (ex.type != Symbols.DragonType.Bool)
     {
         ex.PrintError("Boolean required in if");
     }
 }
Ejemplo n.º 3
0
 public void Init(Express x, Statement s)
 {
     expr = x;
     stmt = s;
     if (expr.type != DragonType.Bool)
     {
         expr.PrintError("boolean required in while");
     }
 }
Ejemplo n.º 4
0
 public Else(Express e, Statement s1, Statement s2)
 {
     ex  = e;
     st1 = s1;
     st2 = s2;
     if (ex.type != Symbols.DragonType.Bool)
     {
         ex.PrintError("Boolean required in if");
     }
 }