libSBML C API  libSBML 5.20.2 C API
Loading...
Searching...
No Matches
L3ParserSettings.cpp File Reference

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

Include dependency graph for L3ParserSettings.cpp:

Functions

L3ParserSettings_tL3ParserSettings_create ()
 @_tendcond_t
 
void L3ParserSettings_free (L3ParserSettings_t *settings)
 _tFrees_t _tthe_t _tgiven_t _tL3ParserSettings_t_t _tstructure_t.
 
const Model_tL3ParserSettings_getModel (const L3ParserSettings_t *settings)
 _tRetrieves_t _tthe_t _tmodel_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
int L3ParserSettings_getParseAvogadroCsymbol (const L3ParserSettings_t *settings)
 _tRetrieves_t _tthe_t _tavogadro_t _tcsymbol_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
int L3ParserSettings_getParseCollapseMinus (const L3ParserSettings_t *settings)
 _tRetrieves_t _tthe_t _tcollapse_t _tminus_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
ParseLogType_t L3ParserSettings_getParseLog (const L3ParserSettings_t *settings)
 _tRetrieves_t _tthe_t _tlog_t _tparsing_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
int L3ParserSettings_getParseModuloL3v2 (const L3ParserSettings_t *settings)
 _tIndicates_t _tthe_t _tcurrent_t _tbehavior_t _tset_t _tfor_t _thandling_t _tthe_t % _tsymbol_t _tin_t _tmathematical_t _tformulas_t.
 
int L3ParserSettings_getParseUnits (const L3ParserSettings_t *settings)
 _tRetrieves_t _tthe_t _tunits_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
void L3ParserSettings_setModel (L3ParserSettings_t *settings, const Model_t *model)
 _tSets_t _tthe_t _tmodel_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t _tto_t _tthe_t _tprovided_t _tpointer_t.
 
void L3ParserSettings_setParseAvogadroCsymbol (L3ParserSettings_t *settings, int flag)
 _tSets_t _tthe_t _tavogadro_t _tcsymbol_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
void L3ParserSettings_setParseCollapseMinus (L3ParserSettings_t *settings, int flag)
 _tSets_t _tthe_t _tcollapse_t _tminus_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
void L3ParserSettings_setParseLog (L3ParserSettings_t *settings, ParseLogType_t type)
 _tSets_t _tthe_t _tlog_t _tparsing_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
void L3ParserSettings_setParseModuloL3v2 (L3ParserSettings_t *settings, int flag)
 
void L3ParserSettings_setParseUnits (L3ParserSettings_t *settings, int flag)
 _tSets_t _tthe_t _tunits_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
void L3ParserSettings_unsetModel (L3ParserSettings_t *settings)
 _tUnsets_t _tthe_t _tmodel_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.
 
void L3ParserSettings_visitPackageInfixSyntax (const ASTNode_t *parent, const ASTNode_t *node, StringBuffer_t *sb, const L3ParserSettings_t *settings)
 _tVisits_t _tthe_t _tgiven_t _tASTNode_t _tand_t _tcontinues_t _tthe_t _tinorder_t _ttraversal_t.
 

Detailed Description

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

Author
Lucian Smith

Function Documentation

◆ L3ParserSettings_create()

L3ParserSettings_t * L3ParserSettings_create ( )

@_tendcond_t

_tCreates_t _ta_t _tnew_t _tL3ParserSettings_t_t _tstructure_t _tand_t _treturns_t _ta_t _tpointer_t _tto_t _tit_t

@_tcond_t _tdoxygenIgnored_t

Examples
translateL3Math.c.

◆ L3ParserSettings_free()

void L3ParserSettings_free ( L3ParserSettings_t settings)

_tFrees_t _tthe_t _tgiven_t _tL3ParserSettings_t_t _tstructure_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tto_t _tfree_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_getModel()

const Model_t * L3ParserSettings_getModel ( const L3ParserSettings_t settings)

_tRetrieves_t _tthe_t _tmodel_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _tfrom_t _twhich_t _tto_t _tget_t _tthe_t _tModel_t_t.

@_treturn_t _tthe_t _tModel_t_t _tstructure_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_getParseAvogadroCsymbol()

int L3ParserSettings_getParseAvogadroCsymbol ( const L3ParserSettings_t settings)

_tRetrieves_t _tthe_t _tavogadro_t _tcsymbol_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _tfrom_t _twhich_t _tto_t _tget_t _tthe_t _toption_t.

@_treturn_t _tan_t _tinteger_t _tindicating_t _twhether_t _tavogadro_t _tshould_t _tbe_t _tconsidered_t _tas_t _ta_t _tcsymbol_t (@_tc_t _t1_t ; _ttrue_t) _tor_t _tnot_t (@_tc_t _t0_t ; _tfalse_t). _tReturns_t @_tc_t _t0_t (_tfalse_t) _tif_t @_tp_t _tsettings_t _tis_t @_tc_t _tNULL_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_getParseCollapseMinus()

int L3ParserSettings_getParseCollapseMinus ( const L3ParserSettings_t settings)

_tRetrieves_t _tthe_t _tcollapse_t _tminus_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

_tThis_t _toption_t _tallows_t _tthe_t _tuser_t _tto_t _tspecify_t _thow_t _tinfix_t _texpressions_t _tlike_t '- -_t4_t' _tare_t _tparsed_t _tin_t _ta_t _tMathML_t _tASTNode_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _tfrom_t _twhich_t _tto_t _tget_t _tthe_t _toption_t.

@_treturn_t _tan_t _tinteger_t _tindicating_t _twhether_t _tunary_t _tminus_t _tshould_t _tbe_t _tcollapsed_t (@_tc_t _t1_t ; _ttrue_t) _tor_t _tnot_t (@_tc_t _t0_t ; _tfalse_t). _tReturns_t @_tc_t _t0_t (_tfalse_t) _tif_t @_tp_t _tsettings_t _tis_t @_tc_t _tNULL_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_getParseLog()

ParseLogType_t L3ParserSettings_getParseLog ( const L3ParserSettings_t settings)

_tRetrieves_t _tthe_t _tlog_t _tparsing_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

_tThis_t _toption_t _tallows_t _tthe_t _tuser_t _tto_t _tspecify_t _thow_t _tthe_t _tinfix_t _texpression_t '_tlog_t(_tx_t)' _tis_t _tparsed_t _tin_t _ta_t _tMathML_t _tASTNode_t. _tThe_t _toptions_t _tare_t: @_tli_t @_tsbmlconstant_t{_tL3P_PARSE_LOG_AS_LOG10_t,_tParseLogType_t_t} (_t0_t) @_tli_t @_tsbmlconstant_t{_tL3P_PARSE_LOG_AS_LN_t,_tParseLogType_t_t} (_t1_t) @_tli_t @_tsbmlconstant_t{_tL3P_PARSE_LOG_AS_ERROR_t,_tParseLogType_t_t} (_t2_t)

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _ton_t _twhich_t _tto_t _tset_t _tthe_t _tModel_t_t.

@_treturn_t _tParseLogType_t_t _tlog_t _tparsing_t _toption_t _tto_t _tassociate_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t. _tReturns_t @_tsbmlconstant_t{_tL3P_PARSE_LOG_AS_LOG10_t,_tParseLogType_t_t} (_t0_t) _tif_t @_tp_t _tsettings_t _tis_t @_tc_t _tNULL_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_getParseModuloL3v2()

int L3ParserSettings_getParseModuloL3v2 ( const L3ParserSettings_t settings)

_tIndicates_t _tthe_t _tcurrent_t _tbehavior_t _tset_t _tfor_t _thandling_t _tthe_t % _tsymbol_t _tin_t _tmathematical_t _tformulas_t.

@_tcopydetails_t _tdoc_modulo_l3v2_settings_t

@_treturn_t _ta_t _tboolean_t _tindicating_t _tthe_t _tbehavior_t _tcurrently_t _tset_t. _tThe_t _tpossible_t _tvalues_t _tare_t _tas_t _tfollows_t: @_tcopydetails_t _tdoc_modulo_l3v2_values_t

@_tsee_t _tL3ParserSettings_setParseModuloL3v2_t(@_tif_t _tjava_t _tboolean_t@_tendif_t)

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_getParseUnits()

int L3ParserSettings_getParseUnits ( const L3ParserSettings_t settings)

_tRetrieves_t _tthe_t _tunits_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _tfrom_t _twhich_t _tto_t _tget_t _tthe_t _toption_t.

@_treturn_t _tan_t _tinteger_t _tindicating_t _twhether_t _tnumbers_t _tshould_t _tbe_t _tconsidered_t _tas_t _ta_t _thaving_t _tunits_t (@_tc_t _t1_t ; _ttrue_t) _tor_t _tnot_t (@_tc_t _t0_t ; _tfalse_t). _tReturns_t @_tc_t _t0_t (_tfalse_t) _tif_t @_tp_t _tsettings_t _tis_t @_tc_t _tNULL_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_setModel()

void L3ParserSettings_setModel ( L3ParserSettings_t settings,
const Model_t model 
)

_tSets_t _tthe_t _tmodel_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t _tto_t _tthe_t _tprovided_t _tpointer_t.

@_tnote_t _tA_t _tcopy_t _tof_t _tthe_t _tModel_t_t _tis_t _tnot_t _tmade_t, _tso_t _tmodifications_t _tto_t _tthe_t _tModel_t_t _titself_t _tmay_t _taffect_t _tfuture_t _tparsing_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _ton_t _twhich_t _tto_t _tset_t _tthe_t _tModel_t_t. @_tparam_t _tmodel_t _tthe_t _tModel_t_t _tstructure_t _tto_t _twhich_t _tinfix_t _tstrings_t _tare_t _tto_t _tbe_t _tcompared_t.

@_tmemberof_t _tL3ParserSettings_t_t

Examples
translateL3Math.c.

◆ L3ParserSettings_setParseAvogadroCsymbol()

void L3ParserSettings_setParseAvogadroCsymbol ( L3ParserSettings_t settings,
int  flag 
)

_tSets_t _tthe_t _tavogadro_t _tcsymbol_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _ton_t _twhich_t _tto_t _tset_t _tthe_t _toption_t. @_tparam_t _tflag_t _tan_t _tinteger_t _tindicating_t _twhether_t _tavogadro_t _tshould_t _tbe_t _tconsidered_t _tas_t _ta_t _tcsymbol_t (@_tc_t _t1_t ; _ttrue_t) _tor_t _tnot_t (@_tc_t _t0_t ; _tfalse_t). _tReturns_t @_tc_t _t0_t (_tfalse_t) _tif_t @_tp_t _tsettings_t _tis_t @_tc_t _tNULL_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_setParseCollapseMinus()

void L3ParserSettings_setParseCollapseMinus ( L3ParserSettings_t settings,
int  flag 
)

_tSets_t _tthe_t _tcollapse_t _tminus_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

_tThis_t _toption_t _tallows_t _tthe_t _tuser_t _tto_t _tspecify_t _thow_t _tinfix_t _texpressions_t _tlike_t '- -_t4_t' _tare_t _tparsed_t _tin_t _ta_t _tMathML_t _tASTNode_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _ton_t _twhich_t _tto_t _tset_t _tthe_t _toption_t. @_tparam_t _tflag_t _tan_t _tinteger_t _tindicating_t _twhether_t _tunary_t _tminus_t _tshould_t _tbe_t _tcollapsed_t (@_tc_t _t1_t ; _ttrue_t) _tor_t _tnot_t (@_tc_t _t0_t ; _tfalse_t). _tReturns_t @_tc_t _t0_t (_tfalse_t) _tif_t @_tp_t _tsettings_t _tis_t @_tc_t _tNULL_t.

@_tmemberof_t _tL3ParserSettings_t_t

Examples
translateL3Math.c.

◆ L3ParserSettings_setParseLog()

void L3ParserSettings_setParseLog ( L3ParserSettings_t settings,
ParseLogType_t  type 
)

_tSets_t _tthe_t _tlog_t _tparsing_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

_tThis_t _toption_t _tallows_t _tthe_t _tuser_t _tto_t _tspecify_t _thow_t _tthe_t _tinfix_t _texpression_t '_tlog_t(_tx_t)' _tis_t _tparsed_t _tin_t _ta_t _tMathML_t _tASTNode_t. _tThe_t _toptions_t _tare_t: @_tli_t @_tsbmlconstant_t{_tL3P_PARSE_LOG_AS_LOG10_t,_tParseLogType_t_t} (_t0_t) @_tli_t @_tsbmlconstant_t{_tL3P_PARSE_LOG_AS_LN_t,_tParseLogType_t_t} (_t1_t) @_tli_t @_tsbmlconstant_t{_tL3P_PARSE_LOG_AS_ERROR_t,_tParseLogType_t_t} (_t2_t)

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _ton_t _twhich_t _tto_t _tset_t _tthe_t _toption_t. @_tparam_t _ttype_t _tParseLogType_t_t _tlog_t _tparsing_t _toption_t _tto_t _tassociate_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tmemberof_t _tL3ParserSettings_t_t

Examples
translateL3Math.c.

◆ L3ParserSettings_setParseModuloL3v2()

void L3ParserSettings_setParseModuloL3v2 ( L3ParserSettings_t settings,
int  flag 
)

◆ L3ParserSettings_setParseUnits()

void L3ParserSettings_setParseUnits ( L3ParserSettings_t settings,
int  flag 
)

_tSets_t _tthe_t _tunits_t _toption_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _ton_t _twhich_t _tto_t _tset_t _tthe_t _toption_t. @_tparam_t _tflag_t _tan_t _tinteger_t _tindicating_t _twhether_t _tnumbers_t _tshould_t _tbe_t _tconsidered_t _tas_t _ta_t _thaving_t _tunits_t (@_tc_t _t1_t ; _ttrue_t) _tor_t _tnot_t (@_tc_t _t0_t ; _tfalse_t). _tReturns_t @_tc_t _t0_t (_tfalse_t) _tif_t @_tp_t _tsettings_t _tis_t @_tc_t _tNULL_t.

@_tmemberof_t _tL3ParserSettings_t_t

Examples
translateL3Math.c.

◆ L3ParserSettings_unsetModel()

void L3ParserSettings_unsetModel ( L3ParserSettings_t settings)

_tUnsets_t _tthe_t _tmodel_t _tassociated_t _twith_t _tthis_t _tL3ParserSettings_t_t _tstructure_t.

@_tparam_t _tsettings_t _tthe_t _tL3ParserSettings_t_t _tstructure_t _ton_t _twhich_t _tto_t _tunset_t _tthe_t _tModel_t_t.

@_tmemberof_t _tL3ParserSettings_t_t

◆ L3ParserSettings_visitPackageInfixSyntax()

void L3ParserSettings_visitPackageInfixSyntax ( const ASTNode_t parent,
const ASTNode_t node,
StringBuffer_t *  sb,
const L3ParserSettings_t settings 
)

_tVisits_t _tthe_t _tgiven_t _tASTNode_t _tand_t _tcontinues_t _tthe_t _tinorder_t _ttraversal_t.

_tVisits_t _tthe_t _tgiven_t _tASTNode_t_t _tand_t _tcontinues_t _tthe_t _tinorder_t _ttraversal_t _tfor_t _tnodes_t _twhose_t _tsyntax_t _tare_t _tdetermined_t _tby_t _tpackages_t.