-
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 } -
The name of the Symbol (ex:
xory)Declaration
Swift
public var content: String -
The name of the node
Declaration
Swift
public var type: String -
Useless here, but it’s to conform to the Node protocol
Declaration
Swift
public var children: [Node] -
Create a SymbolNode
Declaration
Swift
public init(_ variable: String)Parameters
doubleFloating point number
-
Compiles SymbolNode to simpler node (useless here, but required by protocol)
Declaration
Swift
public func compile() -> Node -
Converts SymboleNode to BigNumber by replacing unknown value by their parameters. If it fails, it will return 0.
Declaration
View on GitHub
StringNode Class Reference