class BinaryOpNode extends ExpressionNode implements OperatorNode

Constants

private Ops

Methods

__construct(ExpressionNode $left, string $operator, ExpressionNode $right, Position|null $position = null)

No description

static ExpressionNode
nest(string $operator, ExpressionNode ...$exprs)

Creates nested BinaryOp nodes from a list of expressions.

string
print(PrintContext $context)

No description

array
getOperatorPrecedence()

Returns [precedence, associativity] for this operator.

getIterator()

No description

Details

at line 25
__construct(ExpressionNode $left, string $operator, ExpressionNode $right, Position|null $position = null)

No description

Parameters

ExpressionNode $left
string $operator
ExpressionNode $right
Position|null $position

at line 40
static ExpressionNode nest(string $operator, ExpressionNode ...$exprs)

Creates nested BinaryOp nodes from a list of expressions.

Parameters

string $operator
ExpressionNode ...$exprs

Return Value

ExpressionNode

at line 56
string print(PrintContext $context)

No description

Parameters

PrintContext $context

Return Value

string

at line 64
array getOperatorPrecedence()

Returns [precedence, associativity] for this operator.

Return Value

array

at line 88
Generator getIterator()

No description

Return Value

Generator