libSBML C++ API  libSBML 5.15.2 C++ API
FormulaFormatter.h File Reference

Formats an AST formula tree as an SBML formula string. More...

Include dependency graph for FormulaFormatter.h:
This graph shows which files directly or indirectly include this file:

Functions

char * SBML_formulaToString (const ASTNode_t *tree)
 Converts an AST to a text string representation of a formula using a basic syntax derived from SBML Level 1. More...
 

Detailed Description

Formats an AST formula tree as an SBML formula string.

Author
Ben Bornstein

Function Documentation

◆ SBML_formulaToString()

char* SBML_formulaToString ( const ASTNode_t tree)

Converts an AST to a text string representation of a formula using a basic syntax derived from SBML Level 1.

Parameters
treethe AST to be converted.
Returns
the formula from the given AST as a text-string mathematical formula oriented towards SBML Level 1. The caller owns the returned string and is responsible for freeing it when it is no longer needed.
See also
SBML_formulaToL3String()