Class BinExpr

All Implemented Interfaces:
Serializable, TokenId

public class BinExpr extends Expr
Binary expression.

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

See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      default serialVersionUID
      See Also:
  • Constructor Details

    • BinExpr

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

    • makeBin

      public static BinExpr makeBin(int op, ASTree oprand1, ASTree oprand2)
    • 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