mirror of https://github.com/aamine/cbc
20 lines
450 B
Java
20 lines
450 B
Java
package net.loveruby.cflat.ast;
|
|
import net.loveruby.cflat.asm.Label;
|
|
|
|
public class LogicalAndNode extends BinaryOpNode {
|
|
protected Label endLabel;
|
|
|
|
public LogicalAndNode(ExprNode left, ExprNode right) {
|
|
super(left, "&&", right);
|
|
this.endLabel = new Label();
|
|
}
|
|
|
|
public LogicalAndNode accept(ASTVisitor visitor) {
|
|
return visitor.visit(this);
|
|
}
|
|
|
|
public Label endLabel() {
|
|
return endLabel;
|
|
}
|
|
}
|