Abstract Syntaxic Tree (AST) node that will be created by the DSLite R parser.
name
Token value
parent
Parent Node
children
Children Nodes
new()
Simple node constructor
Node$new(name = NA, parent = NA)
name
Token value
parent
Parent Node
A Node object
set_parent()
Set parent Node
Node$set_parent(val)
val
Parent Node
add_child()
Add a child Node
Node$add_child(val)
val
Child Node
to_string()
The string representation of the Node
Node$to_string()
to_string_children()
Get the string representation of the Node's children
Node$to_string_children()
accept()
Accept visitor
Node$accept(visitor)
visitor
Node visitor object
clone()
The objects of this class are cloneable with this method.
Node$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other parser items:
BinaryOpNode
,
FormulaNode
,
FunctionNode
,
GroupNode
,
NumericNode
,
ParameterNode
,
RangeNode
,
StringNode
,
SymbolNode
,
UnaryOpNode