Exun.UI (exun v0.5.0)
Parses a tree and transform to string in User Readable form
Link to this section Summary
Functions
Prints in human readable form an AST. Each returns the text converted, the prioriti of the node, a flag indicating if must be included in denominator of a division, and another flag indicatin if must be preceded with a sign - before expression
Translate tree to human readable math expression
Link to this section Functions
Link to this function
show(m)
Prints in human readable form an AST. Each returns the text converted, the prioriti of the node, a flag indicating if must be included in denominator of a division, and another flag indicatin if must be preceded with a sign - before expression
Link to this function
tostr(ast)
Translate tree to human readable math expression:
iex(1)> {_tree, _deps} = Exun.parse "4*x^(y+1)/z",%{"z"=>"y+1"}
{{{:m, :mult},
[
{:numb, 4},
{:elev, {:vari, "x"}, {{:m, :suma}, [numb: 1, vari: "y"]}},
{:elev, {:vari, "z"}, {:numb, -1}}
]}, %{{:vari, "z"} => {{:m, :suma}, [numb: 1, vari: "y"]}}}