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
LeftNodeThe first operand of the binary operation.
RightNodeThe second operand of the binary operation.
OperatorTokenTypeThe operator TokenType of the binary operation.
StartPositionPositionThe starting Position of the BinaryOperationNode.
EndPositionPositionThe 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; }