BinaryOpNode: Binary operation AST node

BinaryOpNodeR Documentation

Binary operation AST node

Description

AST node that represents a binary operation (such as '+', '-' etc.), and therefore having two child nodes.

Super class

DSLite::Node -> BinaryOpNode

Methods

Public methods

Inherited methods

Method add_child()

Two children

Usage
BinaryOpNode$add_child(val)
Arguments
val

Child Node


Method to_string()

Get the string representation of the BinaryOpNode

Usage
BinaryOpNode$to_string()

Method clone()

The objects of this class are cloneable with this method.

Usage
BinaryOpNode$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Other parser items: FormulaNode, FunctionNode, GroupNode, Node, NumericNode, ParameterNode, RangeNode, StringNode, SymbolNode, UnaryOpNode


DSLite documentation built on Oct. 7, 2022, 9:05 a.m.