BinOp constructor

BinOp(
  1. String value,
  2. Node left,
  3. Node right
)

Constructs a binary mathematical operation with the operator and operands.

Parameters:

  • value: String representation of the operator ("+", "-", "*", "/", "%")
  • left: The left operand expression
  • right: The right operand expression

Implementation

BinOp(String value, Node left, Node right)
    : super(MathOp.fromString(value), [left, right]);