Abstract Syntaxic Tree (AST) node that will be created by the DSLite R parser.
Public fields
name
Token value
parent
Parent Node
children
Children Nodes
Methods
Method new()
Simple node constructor
Usage
Node$new(name = NA, parent = NA)
Arguments
name
Token value
parent
Parent Node
Method set_parent()
Set parent Node
Method add_child()
Add a child Node
Method to_string()
The string representation of the Node
Method to_string_children()
Get the string representation of the Node's children
Usage
Node$to_string_children()
Method accept()
Accept visitor
Arguments
visitor
Node visitor object
Method clone()
The objects of this class are cloneable with this method.
Arguments
deep
Whether to make a deep clone.