public AND(BoolAST A, BoolAST B) { this.type = TYPE.AND; this.children = new BoolAST[2]; this.children[0] = A; this.children[1] = B; }
public OR(BoolAST A, BoolAST B) { this.type = TYPE.OR; this.children = new BoolAST[2]; this.children[0] = A; this.children[1] = B; }
public NOT(BoolAST term) { this.type = TYPE.NOT; this.children = new BoolAST[1]; this.children[0] = term; }