UnaryOpNode: Unary operator AST node

UnaryOpNodeR Documentation

Unary operator AST node

Description

AST node that represents a unary operator (such as '-'), therefore having a single child node.

Super class

Node -> UnaryOpNode

Methods

Public methods

Inherited methods

UnaryOpNode$add_child()

One children

Usage
UnaryOpNode$add_child(val)
Arguments
val

Child Node


UnaryOpNode$to_string()

Get the string representation of the UnaryOpNode

Usage
UnaryOpNode$to_string()

UnaryOpNode$clone()

The objects of this class are cloneable with this method.

Usage
UnaryOpNode$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

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


DSLite documentation built on Nov. 12, 2026, 1:07 a.m.