ASTPlus | R Documentation |
The addition of two terms, in an ASTNode.
The addition of two terms, in an ASTNode.
R6Class
object.
tangram::ASTNode
-> tangram::ASTBranch
-> ASTPlus
data
Just returns the R6 name 'ASTPlus'
left
The node to the left of this node
right
The node to the right of this node
new()
Construct a new node that represents addition
ASTPlus$new(left, right)
left
(ASTNode) Node on the left side of the addition
right
(ASTNode) Node on the right side of the addition
terms()
Returns a vector of the left and right terms
ASTPlus$terms()
string()
A reparsable string representation of this node.
ASTPlus$string()
clone()
The objects of this class are cloneable with this method.
ASTPlus$clone(deep = FALSE)
deep
Whether to make a deep clone.
ASTPlus$new(ASTVariable$new("x"), ASTVariable$new("y"))$string()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.