Class BinaryOperationNode
- Namespace
- EzrSquared.Runtime.Nodes
- Assembly
- ezrSquared-lib.dll
The Node structure for a binary operation.
public record BinaryOperationNode : Node
- Inheritance
-
objectBinaryOperationNode
- Inherited Members
Constructors
BinaryOperationNode(Node, Node, TokenType, Position, Position)
The Node structure for a binary operation.
public BinaryOperationNode(Node Left, Node Right, TokenType Operator, Position StartPosition, Position EndPosition)
Parameters
Left
NodeThe first operand of the binary operation.
Right
NodeThe second operand of the binary operation.
Operator
TokenTypeThe operator TokenType of the binary operation.
StartPosition
PositionThe starting Position of the BinaryOperationNode.
EndPosition
PositionThe ending Position of the BinaryOperationNode.
Properties
Left
The first operand of the binary operation.
public Node Left { get; init; }
Property Value
Operator
The operator TokenType of the binary operation.
public TokenType Operator { get; init; }
Property Value
Right
The second operand of the binary operation.
public Node Right { get; init; }