Class BinExpr

  • All Implemented Interfaces:
    java.io.Serializable, TokenId

    public class BinExpr
    extends Expr
    Binary expression.

    If the operator is +, the right node might be null. See TypeChecker.atBinExpr().

    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        default serialVersionUID
        See Also:
        Constant Field Values
    • Constructor Detail

      • BinExpr

        private BinExpr​(int op,
                        ASTree _head,
                        ASTList _tail)
    • Method Detail

      • accept

        public void accept​(Visitor v)
                    throws CompileError
        Description copied from class: ASTree
        Is a method for the visitor pattern. It calls atXXX() on the given visitor, where XXX is the class name of the node object.
        Overrides:
        accept in class Expr
        Throws:
        CompileError