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

Super class

DSLite::Node -> UnaryOpNode

Methods

Inherited methods


Method add_child()

One children

Usage

UnaryOpNode$add_child(val)

Arguments

val

Child Node


Method to_string()

Get the string representation of the UnaryOpNode

Usage

UnaryOpNode$to_string()


Method clone()

The objects of this class are cloneable with this method.

Usage

UnaryOpNode$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.