libSBML C++ API  libSBML 5.16.0 C++ API
L3FormulaFormatter.h File Reference

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

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

Functions

char * SBML_formulaToL3String (const ASTNode_t *tree)
 Converts an AST to a text string representation of a formula using an extended syntax. More...
 
char * SBML_formulaToL3StringWithSettings (const ASTNode_t *tree, const L3ParserSettings_t *settings)
 Converts an AST to a text string representation of a formula, using specific formatter settings. More...
 

Detailed Description

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

Author
Lucian Smith

Function Documentation

◆ SBML_formulaToL3String()

char* SBML_formulaToL3String ( const ASTNode_t tree)

Converts an AST to a text string representation of a formula using an extended syntax.

Parameters
treethe AST to be converted.
Returns
the formula from the given AST as text string, with a syntax oriented towards the capabilities defined in SBML Level 3. The caller owns the returned string and is responsible for freeing it when it is no longer needed. If tree is a null pointer, then a null pointer is returned.
See also
SBML_formulaToL3StringWithSettings()

◆ SBML_formulaToL3StringWithSettings()

char* SBML_formulaToL3StringWithSettings ( const ASTNode_t tree,
const L3ParserSettings_t settings 
)

Converts an AST to a text string representation of a formula, using specific formatter settings.

This function behaves identically to SBML_formulaToL3String()