libSBML Python API
5.20.2
|
ASTNode
readMathMLFromString(string) reads raw MathML from a text string, constructs an AST from it, then returns the root ASTNode of the resulting expression tree. Similarly, writing out Abstract Syntax Tree structures is easily done using the following method:
string
writeMathMLToString(ASTNode) writes an AST to a string. The caller owns the character string returned and should free it after it is no longer needed.