libSBML Perl API
libSBML 5.17.2 Perl API
|
Definition of the level 3 infix-to-mathml parser C functions. More...
Functions | |
L3ParserSettings_t * | SBML_getDefaultL3ParserSettings () |
Returns a copy of the default Level 3 ("L3") formula parser settings. More... | |
char * | SBML_getLastParseL3Error () |
Returns the last error reported by the "L3" mathematical formula parser. More... | |
ASTNode_t * | SBML_parseL3Formula (const char *formula) |
Parses a text string as a mathematical formula and returns an AST representation of it. More... | |
ASTNode_t * | SBML_parseL3FormulaWithModel (const char *formula, const Model_t *model) |
Parses a text string as a mathematical formula using a Model to resolve symbols, and returns an AST representation of the result. More... | |
ASTNode_t * | SBML_parseL3FormulaWithSettings (const char *formula, const L3ParserSettings_t *settings) |
Parses a text string as a mathematical formula using specific parser settings and returns an AST representation of the result. More... | |
Definition of the level 3 infix-to-mathml parser C functions.
L3ParserSettings_t* SBML_getDefaultL3ParserSettings | ( | ) |
Returns a copy of the default Level 3 ("L3") formula parser settings.
The data structure storing the settings allows callers to change the following parsing behaviors:
For more details about the parser, please see the definition of L3ParserSettings and
char* SBML_getLastParseL3Error | ( | ) |
Returns the last error reported by the "L3" mathematical formula parser.
If the functions
ASTNode_t* SBML_parseL3Formula | ( | const char * | formula | ) |
Parses a text string as a mathematical formula and returns an AST representation of it.
formula | the text-string formula expression to be parsed. |
NULL
if an error occurred while parsing the formula. When NULL
is returned, an error is recorded internally; information about the error can be retrieved using Parses a text string as a mathematical formula using a Model to resolve symbols, and returns an AST representation of the result.
This is identical to
ASTNode_t* SBML_parseL3FormulaWithSettings | ( | const char * | formula, |
const L3ParserSettings_t * | settings | ||
) |
Parses a text string as a mathematical formula using specific parser settings and returns an AST representation of the result.
This is identical to