| Node {DSLite} | R Documentation | 
Simple AST node
Description
Abstract Syntaxic Tree (AST) node that will be created by the DSLite R parser.
Public fields
nameToken value
parentParent Node
childrenChildren Nodes
Methods
Public methods
Method new()
Simple node constructor
Usage
Node$new(name = NA, parent = NA)
Arguments
nameToken value
parentParent Node
Returns
A Node object
Method set_parent()
Set parent Node
Usage
Node$set_parent(val)
Arguments
valParent Node
Method add_child()
Add a child Node
Usage
Node$add_child(val)
Arguments
valChild Node
Method to_string()
The string representation of the Node
Usage
Node$to_string()
Method to_string_children()
Get the string representation of the Node's children
Usage
Node$to_string_children()
Method accept()
Accept visitor
Usage
Node$accept(visitor)
Arguments
visitorNode visitor object
Method clone()
The objects of this class are cloneable with this method.
Usage
Node$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
Other parser items: 
BinaryOpNode,
FormulaNode,
FunctionNode,
GroupNode,
NumericNode,
ParameterNode,
RangeNode,
StringNode,
SymbolNode,
UnaryOpNode
[Package DSLite version 1.4.0 Index]