-
The depth of the deepest children of the
Node
in aTree
Declaration
Swift
public var maxDepth: Int?
-
The depth of the
Node
in aTree
Declaration
Swift
public var depth: Int?
-
Gives String representation of the node
Declaration
Swift
public func toString() -> String
-
Gives Tex (String) representation of the node
Declaration
Swift
public func toTex() -> String
-
The
print()
descriptionDeclaration
Swift
override public var description: String { get }
-
The sign of the operator (ex:
"+"
or"*"
)Declaration
Swift
public var content: String
-
The name of the node
Declaration
Swift
public var type: String
-
The left and right hand sides of the operator
Declaration
Swift
public var children: [Node]
-
Creates an OperatorNode
Declaration
Swift
public init(_ op: String, children: [Node])
Parameters
op
The symbol of the operator, ex: +, -, /, …
children
The 2 affected nodes
-
Compiles ConstantNode to simpler node (useless here, but required by protocol)
Declaration
Swift
public func compile() -> Node
-
Converts OperatorNode to BigNumber
Declaration