Node {DSLite} | R Documentation |
Simple AST node
Description
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
Public methods
Method new()
Simple node constructor
Usage
Node$new(name = NA, parent = NA)
Arguments
name
Token value
parent
Parent Node
Returns
A Node object
Method set_parent()
Set parent Node
Usage
Node$set_parent(val)
Arguments
val
Parent Node
Method add_child()
Add a child Node
Usage
Node$add_child(val)
Arguments
val
Child 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
visitor
Node visitor object
Method clone()
The objects of this class are cloneable with this method.
Usage
Node$clone(deep = FALSE)
Arguments
deep
Whether 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]