Class BinaryOperationNode

Assembly: redb.Route.dll

AST node representing a binary operation (e.g. addition, comparison, logical operations).

public class BinaryOperationNode : AstNode

Inheritance

Object→AstNode→BinaryOperationNode

Inherited Members

Properties

Left

Gets the left operand of the binary operation.

public AstNode Left { get; }

Operator

Gets the operator symbol (e.g. "+", "==", "AND").

public string Operator { get; }

Right

Gets the right operand of the binary operation.

public AstNode Right { get; }

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Constructors

BinaryOperationNode(AstNode, string, AstNode)

Initializes a new instance of the class.