class Eval extends java.lang.Object implements ExprVisitor<java.lang.Integer>
Constructor and Description |
---|
Eval() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
visitBinOp(Expr l,
Op op,
Expr r) |
java.lang.Integer |
visitConst(int c) |
Eval()
public java.lang.Integer visitConst(int c)
visitConst
in interface ExprVisitor<java.lang.Integer>
public java.lang.Integer visitBinOp(Expr l, Op op, Expr r)
visitBinOp
in interface ExprVisitor<java.lang.Integer>