public void Init(Statement s, Express e) { ex = e; st = s; if (ex.type != DragonType.Bool) { ex.PrintError("boolean required in Do"); } }
public If(Express e, Statement s) { ex = e; st = s; if (ex.type != Symbols.DragonType.Bool) { ex.PrintError("Boolean required in if"); } }
public void Init(Express x, Statement s) { expr = x; stmt = s; if (expr.type != DragonType.Bool) { expr.PrintError("boolean required in while"); } }
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"); } }