|
libSBML C++ API
5.18.0
|
Definition of the level 3 infix-to-mathml parser settings. More...
Classes | |
| class | L3ParserSettings |
| Controls the behavior of the Level 3 formula parser. More... | |
Macros | |
| #define | L3P_AVOGADRO_IS_CSYMBOL true |
| Recognize 'avogadro' as an SBML Level 3 symbol. More... | |
| #define | L3P_AVOGADRO_IS_NAME false |
| Do not treat 'avogadro' specially—consider it a plain symbol name. More... | |
| #define | L3P_COLLAPSE_UNARY_MINUS true |
| Collapse unary minuses where possible. More... | |
| #define | L3P_COMPARE_BUILTINS_CASE_INSENSITIVE false |
| Treat all forms of built-in functions as referencing that function, regardless of the capitalization of that string. More... | |
| #define | L3P_COMPARE_BUILTINS_CASE_SENSITIVE true |
| Treat only the all-lower-case form of built-in functions as referencing that function, and all other forms of capitalization of that string as referencing user-defined functions or values. More... | |
| #define | L3P_EXPAND_UNARY_MINUS false |
| Retain unary minuses in the AST representation. More... | |
| #define | L3P_MODULO_IS_PIECEWISE false |
| Parse the '' symbol as an expanded 'piecewise' function (valid in all levels/versions). More... | |
| #define | L3P_MODULO_IS_REM true |
| Parse the '' symbol as the l3v2-allowed 'rem' symbol. More... | |
| #define | L3P_NO_UNITS false |
| Do not recognize units in text-string formulas—treat them as errors. More... | |
| #define | L3P_PARSE_L3V2_FUNCTIONS_AS_GENERIC false |
| Parse the '' symbol as an expanded 'piecewise' function (valid in all levels/versions). More... | |
| #define | L3P_PARSE_L3V2_FUNCTIONS_DIRECTLY true |
| Parse the functions added in l3v2. More... | |
| #define | L3P_PARSE_PACKAGE_MATH_AS_GENERIC false |
| Parse the '' symbol as an expanded 'piecewise' function (valid in all levels/versions). More... | |
| #define | L3P_PARSE_PACKAGE_MATH_DIRECTLY true |
| Parse the functions added in distrib. More... | |
| #define | L3P_PARSE_UNITS true |
| Parse units in text-string formulas. More... | |
Enumerations | |
| enum | L3ParserGrammarLineType_t { INFIX_SYNTAX_NAMED_SQUARE_BRACKETS, INFIX_SYNTAX_CURLY_BRACES, INFIX_SYNTAX_CURLY_BRACES_SEMICOLON } |
| enum | ParseLogType_t { L3P_PARSE_LOG_AS_LOG10 = 0, L3P_PARSE_LOG_AS_LN = 1, L3P_PARSE_LOG_AS_ERROR = 2 } |
Configuration values for handling the log function in mathematical formulas. More... | |
Definition of the level 3 infix-to-mathml parser settings.
| #define L3P_AVOGADRO_IS_CSYMBOL true |
Recognize 'avogadro' as an SBML Level 3 symbol.
| #define L3P_AVOGADRO_IS_NAME false |
Do not treat 'avogadro' specially—consider it a plain symbol name.
| #define L3P_COLLAPSE_UNARY_MINUS true |
Collapse unary minuses where possible.
| #define L3P_COMPARE_BUILTINS_CASE_INSENSITIVE false |
Treat all forms of built-in functions as referencing that function, regardless of the capitalization of that string.
| #define L3P_COMPARE_BUILTINS_CASE_SENSITIVE true |
Treat only the all-lower-case form of built-in functions as referencing that function, and all other forms of capitalization of that string as referencing user-defined functions or values.
| #define L3P_EXPAND_UNARY_MINUS false |
Retain unary minuses in the AST representation.
| #define L3P_MODULO_IS_PIECEWISE false |
Parse the '' symbol as an expanded 'piecewise' function (valid in all levels/versions).
| #define L3P_MODULO_IS_REM true |
Parse the '' symbol as the l3v2-allowed 'rem' symbol.
| #define L3P_NO_UNITS false |
Do not recognize units in text-string formulas—treat them as errors.
| #define L3P_PARSE_L3V2_FUNCTIONS_AS_GENERIC false |
Parse the '' symbol as an expanded 'piecewise' function (valid in all levels/versions).
| #define L3P_PARSE_L3V2_FUNCTIONS_DIRECTLY true |
Parse the functions added in l3v2.
| #define L3P_PARSE_PACKAGE_MATH_AS_GENERIC false |
Parse the '' symbol as an expanded 'piecewise' function (valid in all levels/versions).
| #define L3P_PARSE_PACKAGE_MATH_DIRECTLY true |
Parse the functions added in distrib.
| #define L3P_PARSE_UNITS true |
Parse units in text-string formulas.
| enum ParseLogType_t |
Configuration values for handling the log function in mathematical formulas.
The L3ParserSettings object can be used to modify the behavior of the SBML Level 3-oriented formula parser. One of the behaviors that can be modified is how it should translate the function log(x). It has three different behavior modes, each settable using values from this enumeration.