toggle menu
alchemist
35.0.2
jvm
switch theme
search in API
alchemist-sapere-mathexp
/
it.unibo.alchemist.model.sapere.dsl.impl
/
AST
AST
class
AST
:
ITree
(
source
)
Members
Constructors
AST
Link copied to clipboard
constructor
(
root
:
ITreeNode
<
out
Any
>
)
Builds a new AST given its root node.
Functions
assign
Var
Value
Link copied to clipboard
open
fun
assignVarValue
(
matches
:
Map
<
HashString
,
ITreeNode
<
out
Any
>
>
)
:
AST
This method substitutes variables present in matches map with their values.
evaluation
Link copied to clipboard
open
fun
evaluation
(
matches
:
Map
<
HashString
,
ITreeNode
<
out
Any
>
>
)
:
Double
This evaluates the expression.
get
Root
Link copied to clipboard
open
fun
getRoot
(
)
:
ITreeNode
<
out
Any
>
Return the root Node of the tree.
to
Hash
String
Link copied to clipboard
open
fun
toHashString
(
)
:
HashString
Similar to toString(), but returns a HashString.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String