Expression

open fun Expression(tree: ITree)

This constructor does not do any parsing, and thus is much faster than the other one.

Parameters

tree

the ITree which represents this Expression


open fun Expression(n: ITreeNode<out Any>)

Parameters

n

the root node of the expression


open fun Expression(s: String)

This constructor parses the String into an Expression. Due to the parsing operation, it is slow compared to the other one, and should be used only in the first initialization phase.

Parameters

s

The String representing the expression