libSBML C API  libSBML 5.20.2 C API
Loading...
Searching...
No Matches
FormulaParser.h File Reference

Parses an SBML formula string into an AST. More...

Include dependency graph for FormulaParser.h:
This graph shows which files directly or indirectly include this file:

Functions

long FormulaParser_getAction (long state, Token_t *token)
 @_tcond_t _tdoxygenLibsbmlInternal_t
 
long FormulaParser_getActionLength (TokenType_t type)
 @_treturn_t _tthe_t _tnumber_t _tof_t _tconsective_t _ttokens_t _tin_t _tthe_t _tAction_t[] _ttable_t _tfor_t _tthe_t _tgiven_t _ttoken_t _ttype_t.
 
long FormulaParser_getActionOffset (TokenType_t type)
 @_treturn_t _tthe_t _tstarting_t _toffset_t _tinto_t _tthe_t _tAction_t[] _ttable_t _tfor_t _tthe_t _tgiven_t _ttoken_t _ttype_t.
 
long FormulaParser_getGoto (long state, long rule)
 @_treturn_t _tthe_t _tnext_t (_tor_t _tgoto_t) _tstate_t _tfor_t _tthe_t _tcurrent_t _tstate_t _tand_t _tgrammar_t _trule_t.
 
ASTNode_tFormulaParser_reduceStackByRule (Stack_t *stack, long rule)
 _tReduces_t _tthe_t _tgiven_t _tstack_t (_tcontaining_t _tSLR_t _tparser_t _tstates_t _tand_t _tASTNodes_t) _tby_t _tthe_t _tgiven_t _tgrammar_t _trule_t.
 
ASTNode_tSBML_parseFormula (const char *formula)
 _tParses_t _ta_t _ttext_t _tstring_t _tas_t _ta_t _tmathematical_t _tformula_t _tand_t _treturns_t _tan_t _tAST_t _trepresentation_t _tof_t _tit_t.
 

Detailed Description

Parses an SBML formula string into an AST.

Author
Ben Bornstein

Function Documentation

◆ FormulaParser_getAction()

long FormulaParser_getAction ( long  state,
Token_t token 
)

@_tcond_t _tdoxygenLibsbmlInternal_t

@_treturn_t _tthe_t _taction_t _tfor_t _tthe_t _tcurrent_t _tstate_t _tand_t _ttoken_t.

_tACCEPT_STATE_t _tand_t _tERROR_STATE_t _tare_t _tspecial_t _tand_t _tshould_t _tbe_t _ttested_t _tfor_t _tfirst_t.

_tPostive_t _tactions_t _tless_t-_tthan_t _trepresent_t _tshifts_t. _tNegative_t _tactions_t _tgreater_t _tthan_t _trepresent_t _treductions_t _tby_t _ta_t _tgrammar_t _trule_t.

◆ FormulaParser_getActionLength()

long FormulaParser_getActionLength ( TokenType_t  type)

@_treturn_t _tthe_t _tnumber_t _tof_t _tconsective_t _ttokens_t _tin_t _tthe_t _tAction_t[] _ttable_t _tfor_t _tthe_t _tgiven_t _ttoken_t _ttype_t.

_tThis_t _tfunction_t _tis_t _tmachine_t-_tgenerated_t. _tDO_t _tNOT_t _tEDIT_t.

◆ FormulaParser_getActionOffset()

long FormulaParser_getActionOffset ( TokenType_t  type)

@_treturn_t _tthe_t _tstarting_t _toffset_t _tinto_t _tthe_t _tAction_t[] _ttable_t _tfor_t _tthe_t _tgiven_t _ttoken_t _ttype_t.

_tThis_t _tfunction_t _tis_t _tmachine_t-_tgenerated_t. _tDO_t _tNOT_t _tEDIT_t.

◆ FormulaParser_getGoto()

long FormulaParser_getGoto ( long  state,
long  rule 
)

@_treturn_t _tthe_t _tnext_t (_tor_t _tgoto_t) _tstate_t _tfor_t _tthe_t _tcurrent_t _tstate_t _tand_t _tgrammar_t _trule_t.

_tERROR_STATE_t _tis_t _tspecial_t _tand_t _tshould_t _tbe_t _ttested_t _tfor_t _tfirst_t.

◆ FormulaParser_reduceStackByRule()

ASTNode_t * FormulaParser_reduceStackByRule ( Stack_t *  stack,
long  rule 
)

_tReduces_t _tthe_t _tgiven_t _tstack_t (_tcontaining_t _tSLR_t _tparser_t _tstates_t _tand_t _tASTNodes_t) _tby_t _tthe_t _tgiven_t _tgrammar_t _trule_t.

◆ SBML_parseFormula()

ASTNode_t * SBML_parseFormula ( const char *  formula)

_tParses_t _ta_t _ttext_t _tstring_t _tas_t _ta_t _tmathematical_t _tformula_t _tand_t _treturns_t _tan_t _tAST_t _trepresentation_t _tof_t _tit_t.

@_tcopydetails_t _tdoc_summary_of_string_math_t

@_tparam_t _tformula_t _tthe_t _ttext_t-_tstring_t _tformula_t _texpression_t _tto_t _tbe_t _tparsed_t.

@_treturn_t _tthe_t _troot_t _tnode_t _tof_t _tthe_t _tAST_t _tcorresponding_t _tto_t _tthe_t @_tp_t _tformula_t, _tor_t @_tc_t _tNULL_t _tif_t _tan_t _terror_t _toccurred_t _tin_t _tparsing_t _tthe_t _tformula_t

@_tsee_t @_tsbmlfunction_t{_tparseL3Formula_t, _tString_t} @_tsee_t @_tsbmlfunction_t{_tformulaToString_t, _tASTNode_t} @_tsee_t @_tsbmlfunction_t{_tformulaToL3String_t, _tASTNode_t} @_tsee_t @_tsbmlfunction_t{_tformulaToL3StringWithSettings_t, _tASTNode_t\, _tL3ParserSettings_t} @_tsee_t @_tsbmlfunction_t{_tparseL3FormulaWithSettings_t, _tString_t\, _tL3ParserSettings_t} @_tsee_t @_tsbmlfunction_t{_tparseL3FormulaWithModel_t, _tString_t\, _tModel_t} @_tsee_t _tL3ParserSettings_t

@_tcopydetails_t _tdoc_note_l3_parser_encouraged_t

@_tcopydetails_t _tdoc_note_math_string_syntax_t

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t

_tParses_t _ta_t _ttext_t _tstring_t _tas_t _ta_t _tmathematical_t _tformula_t _tand_t _treturns_t _tan_t _tAST_t _trepresentation_t _tof_t _tit_t.

@_tif_t _tconly_t @_tmemberof_t _tASTNode_t_t @_tendif_t