libSBML Perl API  libSBML 5.17.2 Perl API
L3Parser.cpp File Reference

Macros

#define YYBISON   1
 
#define YYBISON_VERSION   "3.0.4"
 
#define YYPULL   1
 
#define YYPURE   0
 
#define YYPUSH   0
 
#define YYSKELETON_NAME   "yacc.c"
 

Functions

L3ParserSettings_tSBML_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_tSBML_parseL3Formula (const char *formula)
 Parses a text string as a mathematical formula and returns an AST representation of it. More...
 
ASTNode_tSBML_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_tSBML_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...
 

Macro Definition Documentation

◆ YYBISON

#define YYBISON   1

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.0.4"

◆ YYPULL

#define YYPULL   1

◆ YYPURE

#define YYPURE   0

◆ YYPUSH

#define YYPUSH   0

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

Function Documentation

◆ SBML_getDefaultL3ParserSettings()

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

◆ SBML_getLastParseL3Error()

char* SBML_getLastParseL3Error ( )

Returns the last error reported by the "L3" mathematical formula parser.

If the functions

◆ SBML_parseL3Formula()

ASTNode_t* SBML_parseL3Formula ( const char *  formula)

Parses a text string as a mathematical formula and returns an AST representation of it.

Parameters
formulathe text-string formula expression to be parsed.
Returns
the root node of an AST representing the mathematical formula, or 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

◆ SBML_parseL3FormulaWithModel()

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.

This is identical to

◆ SBML_parseL3FormulaWithSettings()

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