libSBML C++ API  libSBML 5.17.2 C++ API
FormulaParser.cpp File Reference
Include dependency graph for FormulaParser.cpp:

Functions

ASTNode_tSBML_parseFormula (const char *formula)
 Parses the given SBML formula and returns a representation of it as an Abstract Syntax Tree (AST). More...
 

Function Documentation

◆ SBML_parseFormula()

ASTNode_t* SBML_parseFormula ( const char *  formula)

Parses the given SBML formula and returns a representation of it as an Abstract Syntax Tree (AST).

Parameters
formulathe text-string formula expression to be parsed
Returns
the root node of the AST corresponding to the formula, or NULL if an error occurred in parsing the formula
See also
SBML_formulaToString()
SBML_parseL3FormulaWithSettings()
SBML_parseL3Formula()
SBML_parseL3FormulaWithModel()
SBML_getLastParseL3Error()
SBML_getDefaultL3ParserSettings()
Examples
translateMath.cpp.