libSBML Perl API  libSBML 5.8.0 Perl API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
L3ParserSettings.h File Reference

Detailed Description

Definition of the level 3 infix-to-mathml parser settings.

Author
Lucian Smith
Include dependency graph for L3ParserSettings.h:
This graph shows which files directly or indirectly include this file:

Classes

class  L3ParserSettings
 A helper class for controlling the behavior of the text-string formula parser. More...
 

Macros

#define L3P_AVOGADRO_IS_CSYMBOL   true
 
#define L3P_AVOGADRO_IS_NAME   false
 
#define L3P_COLLAPSE_UNARY_MINUS   true
 
#define L3P_EXPAND_UNARY_MINUS   false
 
#define L3P_NO_UNITS   false
 
#define L3P_PARSE_UNITS   true
 

Enumerations

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 log in formulas. More...
 

Macro Definition Documentation

#define L3P_AVOGADRO_IS_CSYMBOL   true

Recognize 'avogadro' as an SBML Level 3 symbol.

See Also
getParseAvogadroCsymbol()
setParseAvogadroCsymbol()
#define L3P_AVOGADRO_IS_NAME   false

Do not treat 'avogadro' specially—consider it a plain symbol name.

See Also
getParseAvogadroCsymbol()
setParseAvogadroCsymbol()
#define L3P_COLLAPSE_UNARY_MINUS   true

Collapse unary minuses where possible.

See Also
getParseCollapseMinus()
setParseCollapseMinus()
#define L3P_EXPAND_UNARY_MINUS   false

Retain unary minuses in the AST representation.

See Also
getParseCollapseMinus()
setParseCollapseMinus()
#define L3P_NO_UNITS   false

Do not recognize units in text-string formulas—treat them as errors.

See Also
setParseCollapseMinus()
getParseCollapseMinus()
#define L3P_PARSE_UNITS   true

Parse units in text-string formulas.

See Also
setParseCollapseMinus()
getParseCollapseMinus()

Enumeration Type Documentation

Configuration values for handling log in formulas.

Enumerator
L3P_PARSE_LOG_AS_LOG10 

Parse log(x) as the base-10 logarithm of x.

L3P_PARSE_LOG_AS_LN 

Parse log(x) as the natural logarithm of x.

L3P_PARSE_LOG_AS_ERROR 

Refuse to parse log(x) at all, and set an error message telling the user to use log10(x), ln(x), or log(base, x) instead.