Learn R Programming

DSLite (version 1.4.0)

BinaryOpNode: Binary operation AST node

Description

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

Arguments

Super class

DSLite::Node -> BinaryOpNode

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