AST node that represents a unary operator (such as '-'), therefore having a single child node.
DSLite::Node
-> UnaryOpNode
add_child()
One children
UnaryOpNode$add_child(val)
val
Child Node
to_string()
Get the string representation of the UnaryOpNode
UnaryOpNode$to_string()
clone()
The objects of this class are cloneable with this method.
UnaryOpNode$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other parser items:
BinaryOpNode
,
FormulaNode
,
FunctionNode
,
GroupNode
,
Node
,
NumericNode
,
ParameterNode
,
RangeNode
,
StringNode
,
SymbolNode