Table of Contents

Class BinaryOperationNode

Namespace
EzrSquared.Runtime.Nodes
Assembly
ezrSquared-lib.dll

The Node structure for a binary operation.

public record BinaryOperationNode : Node
Inheritance
object
BinaryOperationNode
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 Node

The first operand of the binary operation.

Right Node

The second operand of the binary operation.

Operator TokenType

The operator TokenType of the binary operation.

StartPosition Position

The starting Position of the BinaryOperationNode.

EndPosition Position

The ending Position of the BinaryOperationNode.

Properties

Left

The first operand of the binary operation.

public Node Left { get; init; }

Property Value

Node

Operator

The operator TokenType of the binary operation.

public TokenType Operator { get; init; }

Property Value

TokenType

Right

The second operand of the binary operation.

public Node Right { get; init; }

Property Value

Node