ExpressionNode
public class ExpressionNode : NSObject, Node
An ExpressionNode is a Node containing 1 or more expression.
-
The depth of the deepest children of the
Nodein aTreeDeclaration
Swift
public var maxDepth: Int? -
The depth of the
Nodein aTreeDeclaration
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 } -
Here it’s useless, but it’s required to conform to Node
Declaration
Swift
public var content: String -
Name of the Node
Declaration
Swift
public var type: String { get } -
Array of Node, containing the expressions
Declaration
Swift
public var children: [Node] -
Create a ExpressionNode
Declaration
Swift
public init(_ nodes: Node...)Parameters
nodesa Node of any type
-
Create a ExpressionNode
Declaration
Swift
public init(_ nodes: [Node])Parameters
nodesan array of Node of any type
-
Compiles ExpressionNode to simpler node (useless here, but required by protocol)
Declaration
Swift
public func compile() -> Node -
Converts ExpressionNode to BigNumber
Declaration
-
Converts ExpressionNode to BigNumber
View on GitHub
ExpressionNode Class Reference