LibreOffice Module starmath (master) 1
|
Parses the starmath code and creates the nodes. More...
#include <parse5.hxx>
Public Member Functions | |
SmParser5 () | |
virtual | ~SmParser5 () |
std::unique_ptr< SmTableNode > | Parse (const OUString &rBuffer) |
Parse rBuffer to formula tree. More... | |
std::unique_ptr< SmNode > | ParseExpression (const OUString &rBuffer) |
Parse rBuffer to formula subtree that constitutes an expression. More... | |
const OUString & | GetText () const |
bool | IsImportSymbolNames () const |
void | SetImportSymbolNames (bool bVal) |
bool | IsExportSymbolNames () const |
void | SetExportSymbolNames (bool bVal) |
const SmErrorDesc * | NextError () |
const SmErrorDesc * | PrevError () |
const SmErrorDesc * | GetError () const |
const std::set< OUString > & | GetUsedSymbols () const |
Public Member Functions inherited from AbstractSmParser | |
virtual | ~AbstractSmParser () |
virtual std::unique_ptr< SmTableNode > | Parse (const OUString &rBuffer)=0 |
Parse rBuffer to formula tree. More... | |
virtual std::unique_ptr< SmNode > | ParseExpression (const OUString &rBuffer)=0 |
Parse rBuffer to formula subtree that constitutes an expression. More... | |
virtual const OUString & | GetText () const =0 |
virtual bool | IsImportSymbolNames () const =0 |
virtual void | SetImportSymbolNames (bool bVal)=0 |
virtual bool | IsExportSymbolNames () const =0 |
virtual void | SetExportSymbolNames (bool bVal)=0 |
virtual const SmErrorDesc * | NextError ()=0 |
virtual const SmErrorDesc * | PrevError ()=0 |
virtual const SmErrorDesc * | GetError () const =0 |
virtual const std::set< OUString > & | GetUsedSymbols () const =0 |
Private Member Functions | |
SmParser5 (const SmParser5 &)=delete | |
SmParser5 & | operator= (const SmParser5 &)=delete |
void | NextToken () |
void | NextTokenColor (SmTokenType dvipload) |
void | NextTokenFontSize () |
sal_Int32 | GetTokenIndex () const |
void | Replace (sal_Int32 nPos, sal_Int32 nLen, std::u16string_view aText) |
bool | TokenInGroup (TG nGroup) |
std::unique_ptr< SmTableNode > | DoTable () |
std::unique_ptr< SmNode > | DoLine () |
std::unique_ptr< SmNode > | DoExpression (bool bUseExtraSpaces=true) |
std::unique_ptr< SmNode > | DoRelation () |
std::unique_ptr< SmNode > | DoSum () |
std::unique_ptr< SmNode > | DoProduct () |
std::unique_ptr< SmNode > | DoSubSup (TG nActiveGroup, std::unique_ptr< SmNode > xGivenNode) |
std::unique_ptr< SmNode > | DoSubSupEvaluate (std::unique_ptr< SmNode > xGivenNode) |
std::unique_ptr< SmNode > | DoOpSubSup () |
std::unique_ptr< SmNode > | DoPower () |
std::unique_ptr< SmBlankNode > | DoBlank () |
std::unique_ptr< SmNode > | DoTerm (bool bGroupNumberIdent) |
std::unique_ptr< SmNode > | DoEscape () |
std::unique_ptr< SmOperNode > | DoOperator () |
std::unique_ptr< SmNode > | DoOper () |
std::unique_ptr< SmStructureNode > | DoUnOper () |
std::unique_ptr< SmNode > | DoAlign (bool bUseExtraSpaces=true) |
std::unique_ptr< SmStructureNode > | DoFontAttribute () |
std::unique_ptr< SmStructureNode > | DoAttribute () |
std::unique_ptr< SmStructureNode > | DoFont () |
std::unique_ptr< SmStructureNode > | DoFontSize () |
std::unique_ptr< SmStructureNode > | DoColor () |
std::unique_ptr< SmStructureNode > | DoBrace () |
std::unique_ptr< SmBracebodyNode > | DoBracebody (bool bIsLeftRight) |
std::unique_ptr< SmNode > | DoEvaluate () |
std::unique_ptr< SmTextNode > | DoFunction () |
std::unique_ptr< SmTableNode > | DoBinom () |
std::unique_ptr< SmBinVerNode > | DoFrac () |
std::unique_ptr< SmStructureNode > | DoStack () |
std::unique_ptr< SmStructureNode > | DoMatrix () |
std::unique_ptr< SmSpecialNode > | DoSpecial () |
std::unique_ptr< SmGlyphSpecialNode > | DoGlyphSpecial () |
std::unique_ptr< SmExpressionNode > | DoError (SmParseError Error) |
Private Attributes | |
OUString | m_aBufferString |
SmToken | m_aCurToken |
ESelection | m_aCurESelection |
std::vector< SmErrorDesc > | m_aErrDescList |
int | m_nCurError |
sal_Int32 | m_nBufferIndex |
sal_Int32 | m_nTokenIndex |
sal_Int32 | m_nRow |
sal_Int32 | m_nColOff |
bool | m_bImportSymNames |
bool | m_bExportSymNames |
sal_Int32 | m_nParseDepth |
std::set< OUString > | m_aUsedSymbols |
CharClass | m_aNumCC |
const CharClass * | m_pSysCC |
Parses the starmath code and creates the nodes.
Definition at line 29 of file parse5.hxx.
|
privatedelete |
SmParser5::SmParser5 | ( | ) |
Definition at line 2690 of file parse5.cxx.
References LANGUAGE_ENGLISH_US.
|
virtual |
Definition at line 2704 of file parse5.cxx.
|
private |
Definition at line 1170 of file parse5.cxx.
References Align, DoError(), DoExpression(), DoubleAlign, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), and TokenInGroup().
Referenced by DoBracebody(), DoLine(), DoMatrix(), DoStack(), and DoTerm().
|
private |
Definition at line 2015 of file parse5.cxx.
References Attribute, SmToken::eType, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), None, TokenInGroup(), TOVERLINE, TOVERSTRIKE, TUNDERLINE, TWIDEHARPOON, TWIDEHAT, TWIDETILDE, TWIDEVEC, and Width.
Referenced by DoTerm().
|
private |
Definition at line 2500 of file parse5.cxx.
References DoSum(), m_aCurESelection, m_aCurToken, m_nParseDepth, and NextToken().
Referenced by DoTerm().
|
private |
Definition at line 1550 of file parse5.cxx.
References Blank, SmToken::eType, utl::ConfigManager::IsFuzzing(), m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), SM_MOD, TEND, TNEWLINE, and TokenInGroup().
Referenced by DoTerm().
|
private |
Definition at line 2279 of file parse5.cxx.
References DoBracebody(), DoError(), SmToken::eType, Height, LBrace, LbraceExpected, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), None, ParentMismatch, RBrace, RbraceExpected, RightExpected, SAL_WARN, TLANGLE, TLBRACE, TLBRACKET, TLCEIL, TLDBRACKET, TLDLINE, TLEFT, TLFLOOR, TLLINE, TLPARENT, TLRDLINE, TLRLINE, TokenInGroup(), TRANGLE, TRBRACE, TRBRACKET, TRCEIL, TRDBRACKET, TRDLINE, TRFLOOR, TRIGHT, TRLINE, TRPARENT, and TUNKNOWN.
Referenced by DoTerm().
|
private |
Definition at line 2397 of file parse5.cxx.
References DoAlign(), DoError(), SmToken::eType, Height, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), None, RBrace, RbraceExpected, RightExpected, SmNode::SetSelection(), TEND, TMLINE, TokenInGroup(), and TRIGHT.
Referenced by DoBrace().
|
private |
Definition at line 2093 of file parse5.cxx.
References SmToken::aText, SmToken::cMathChar, Color, ColorExpected, DoError(), SmToken::eType, lcl_IsNotWholeNumber(), lcl_IsNotWholeNumber16(), m_aBufferString, m_aCurESelection, m_aCurToken, m_nBufferIndex, m_nParseDepth, NextToken(), NextTokenColor(), NextTokenFontSize(), TCOLOR, TDVIPSNAMESCOL, TERROR, THEX, TokenInGroup(), TRGB, and TRGBA.
Referenced by DoFontAttribute().
|
private |
Definition at line 2664 of file parse5.cxx.
References SmToken::cMathChar, SmToken::eType, starmathdatabase::getParseErrorDesc(), m_aCurESelection, m_aCurToken, m_aErrDescList, m_nParseDepth, NextToken(), SmNode::SetSelection(), SmResId(), and TERROR.
Referenced by DoAlign(), DoBrace(), DoBracebody(), DoColor(), DoEscape(), DoFont(), DoFontSize(), DoMatrix(), DoStack(), DoSubSup(), DoSubSupEvaluate(), and DoTerm().
|
private |
Definition at line 1812 of file parse5.cxx.
References DoError(), SmToken::eType, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), TLANGLE, TLBRACE, TLBRACKET, TLCEIL, TLDBRACKET, TLDLINE, TLFLOOR, TLGROUP, TLLINE, TLPARENT, TRANGLE, TRBRACE, TRBRACKET, TRCEIL, TRDBRACKET, TRDLINE, TRFLOOR, TRGROUP, TRLINE, TRPARENT, and UnexpectedToken.
Referenced by DoTerm().
|
private |
Definition at line 2450 of file parse5.cxx.
References DoPower(), DoSubSupEvaluate(), Height, LBrace, Limit, m_aCurESelection, m_aCurToken, m_nParseDepth, MS_VERTLINE, NextToken(), SmToken::nGroup, RBrace, TEVALUATE, TNONE, and TRLINE.
Referenced by DoTerm().
|
private |
Definition at line 1231 of file parse5.cxx.
References DoRelation(), m_aCurToken, m_nParseDepth, and SmToken::nLevel.
Referenced by DoAlign(), DoLine(), and ParseExpression().
|
private |
Definition at line 2186 of file parse5.cxx.
References DoError(), SmToken::eType, Font, FontExpected, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), TFONT, and TokenInGroup().
Referenced by DoFontAttribute().
|
private |
Definition at line 2058 of file parse5.cxx.
References DoColor(), DoFont(), DoFontSize(), SmToken::eType, FontAttr, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), TBOLD, TCOLOR, TFONT, TITALIC, TNBOLD, TNITALIC, TokenInGroup(), TPHANTOM, and TSIZE.
Referenced by DoTerm().
|
private |
! Reduce values in order to avoid numerical errors
Definition at line 2216 of file parse5.cxx.
References ABSOLUT, SmToken::aText, DIVIDE, DoError(), SmToken::eType, Fraction::GetDenominator(), Fraction::GetNumerator(), lcl_IsNumber(), m_aCurESelection, m_aCurToken, m_nParseDepth, MINUS, MULTIPLY, NextToken(), NextTokenFontSize(), PLUS, SizeExpected, TDIVIDEBY, THEX, TMINUS, TMULTIPLY, and TPLUS.
Referenced by DoFontAttribute().
|
private |
Definition at line 2515 of file parse5.cxx.
References DoSum(), m_aCurESelection, m_aCurToken, m_nParseDepth, and NextToken().
Referenced by DoTerm().
|
private |
Definition at line 2484 of file parse5.cxx.
References SmToken::eType, FNT_FUNCTION, Function, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), SmToken::nGroup, and TFUNC.
Referenced by DoTerm().
|
private |
Definition at line 2655 of file parse5.cxx.
References m_aCurToken, m_nParseDepth, and NextToken().
Referenced by DoProduct(), and DoUnOper().
|
private |
Definition at line 1200 of file parse5.cxx.
References DoAlign(), DoExpression(), SmToken::eType, m_aCurESelection, m_aCurToken, m_nParseDepth, TEND, and TNEWLINE.
Referenced by DoTable().
|
private |
Definition at line 2557 of file parse5.cxx.
References DoAlign(), DoError(), SmToken::eType, i, LgroupExpected, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), PoundExpected, RgroupExpected, TDPOUND, TLGROUP, TPOUND, and TRGROUP.
Referenced by DoTerm().
|
private |
Definition at line 1873 of file parse5.cxx.
References SmToken::aText, eType, SmToken::eType, FNT_TEXT, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), TCOPROD, TIIINT, TIINT, TINT, TINTD, TLIM, TLIMINF, TLIMSUP, TLINT, TLLINT, TLLLINT, TOPER, TPROD, TSPECIAL, TSUM, and u.
Referenced by DoOperator().
|
private |
Definition at line 1851 of file parse5.cxx.
References DoOper(), DoPower(), DoSubSup(), Limit, m_aCurESelection, m_aCurToken, m_nParseDepth, SmToken::nGroup, Oper, Power, and TokenInGroup().
Referenced by DoTerm().
|
private |
Definition at line 1523 of file parse5.cxx.
References DoSubSup(), m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), SmToken::nGroup, and Power.
Referenced by DoProduct(), DoRelation(), DoSum(), and DoUnOper().
|
private |
Definition at line 1538 of file parse5.cxx.
References DoSubSup(), DoTerm(), m_aCurToken, m_nParseDepth, SmToken::nGroup, and Power.
Referenced by DoEvaluate(), DoOperator(), DoProduct(), DoTerm(), and DoUnOper().
|
private |
Definition at line 1304 of file parse5.cxx.
References DEPTH_LIMIT, DoGlyphSpecial(), DoOpSubSup(), DoPower(), eType, SmToken::eType, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), SmToken::nGroup, Product, SmBinDiagonalNode::SetAscending(), TBOPER, TokenInGroup(), TOVER, TOVERBRACE, TUNDERBRACE, TWIDEBACKSLASH, and TWIDESLASH.
Referenced by DoSum().
|
private |
Definition at line 1254 of file parse5.cxx.
References DoOpSubSup(), DoSum(), m_aCurESelection, m_aCurToken, m_nParseDepth, Relation, and TokenInGroup().
Referenced by DoExpression(), and DoSubSup().
|
private |
Definition at line 2611 of file parse5.cxx.
References SmToken::aText, SmLocalizedSymbolData::GetExportSymbolName(), GetTokenIndex(), SmLocalizedSymbolData::GetUiSymbolName(), IsExportSymbolNames(), IsImportSymbolNames(), m_aCurESelection, m_aCurToken, m_aUsedSymbols, m_nParseDepth, NextToken(), and Replace().
Referenced by DoTerm().
|
private |
Definition at line 2532 of file parse5.cxx.
References DoAlign(), DoError(), SmToken::eType, LgroupExpected, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), RgroupExpected, TLGROUP, TPOUND, and TRGROUP.
Referenced by DoTerm().
|
private |
Of course 'm_aCurToken' is just the first sub-/supscript token. It should be of no further interest. The positions of the sub-/supscripts will be identified by the corresponding subnodes index in the 'aSubNodes' array (enum value from 'SmSubSup').
Definition at line 1384 of file parse5.cxx.
References CSUB, CSUP, DoError(), DoRelation(), DoTerm(), DoubleSubsupscript, eType, SmToken::eType, Limit, LSUB, LSUP, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), SmToken::nGroup, nIndex, Power, RSUB, RSUP, SAL_WARN, SUBSUP_NUM_ENTRIES, TCSUB, TCSUP, TFROM, TLSUB, TLSUP, TokenInGroup(), TRSUB, TRSUP, and TTO.
Referenced by DoOperator(), DoOpSubSup(), and DoPower().
|
private |
Definition at line 1470 of file parse5.cxx.
References DoError(), DoTerm(), DoubleSubsupscript, eType, SmToken::eType, Limit, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), nIndex, RSUB, RSUP, SAL_WARN, SUBSUP_NUM_ENTRIES, TFROM, TokenInGroup(), and TTO.
Referenced by DoEvaluate().
|
private |
Definition at line 1279 of file parse5.cxx.
References DoOpSubSup(), DoProduct(), m_aCurESelection, m_aCurToken, m_nParseDepth, Sum, and TokenInGroup().
Referenced by DoBinom(), DoFrac(), and DoRelation().
|
private |
Definition at line 1152 of file parse5.cxx.
References DoLine(), SmToken::eType, m_aCurESelection, m_aCurToken, m_nParseDepth, NextToken(), TEND, and TNEWLINE.
Referenced by Parse().
|
private |
Definition at line 1574 of file parse5.cxx.
References Attribute, DoAlign(), DoAttribute(), DoBinom(), DoBlank(), DoBrace(), DoError(), DoEscape(), DoEvaluate(), DoFontAttribute(), DoFrac(), DoFunction(), DoMatrix(), DoOperator(), DoPower(), DoSpecial(), DoStack(), DoTerm(), DoUnOper(), SmToken::eType, FNT_NUMBER, FNT_TEXT, FNT_VARIABLE, FontAttr, Function, CharClass::getType(), LBrace, m_aBufferString, m_aCurESelection, m_aCurToken, m_nBufferIndex, m_nParseDepth, m_pSysCC, NextToken(), NextTokenFontSize(), NumberExpected, Oper, RgroupExpected, TALEPH, TBACKEPSILON, TBINOM, TBLANK, TCHARACTER, TCIRC, TDLARROW, TDLRARROW, TDOTSAXIS, TDOTSDIAG, TDOTSDOWN, TDOTSLOW, TDOTSUP, TDOTSVERT, TDOWNARROW, TDRARROW, TEMPTYSET, TESCAPE, TEVALUATE, TEXISTS, TFORALL, TFOURIER, TFRAC, THBAR, THEX, TIDENT, TIM, TINFINITY, TLAMBDABAR, TLAPLACE, TLEFT, TLEFTARROW, TLGROUP, TMATRIX, TNABLA, TNOSPACE, TNOTEXISTS, TNUMBER, TokenInGroup(), TPARTIAL, TPLACE, TRE, TRGROUP, TRIGHTARROW, TSBLANK, TSETC, TSETN, TSETQ, TSETR, TSETZ, TSPECIAL, TSTACK, TTEXT, TTOWARD, TUPARROW, TWP, UnexpectedChar, and UnOper.
Referenced by DoPower(), DoSubSup(), DoSubSupEvaluate(), and DoTerm().
|
private |
Definition at line 1921 of file parse5.cxx.
References DoGlyphSpecial(), DoOpSubSup(), DoPower(), eType, SmToken::eType, Height, m_aCurESelection, m_aCurToken, m_nParseDepth, MS_VERTLINE, NextToken(), SmToken::nGroup, SmToken::setChar(), TABS, TFACT, TMINUS, TMINUSPLUS, TNEG, TNROOT, TokenInGroup(), TPLUS, TPLUSMINUS, TSQRT, TUOPER, and UnOper.
Referenced by DoTerm().
|
virtual |
|
inlinevirtual |
|
inlineprivate |
|
inlinevirtual |
|
inlinevirtual |
Implements AbstractSmParser.
Definition at line 111 of file parse5.hxx.
References m_bExportSymNames.
Referenced by DoSpecial().
|
inlinevirtual |
Implements AbstractSmParser.
Definition at line 109 of file parse5.hxx.
References m_bImportSymNames.
Referenced by DoSpecial().
|
virtual |
Implements AbstractSmParser.
Definition at line 2738 of file parse5.cxx.
References m_aErrDescList, and m_nCurError.
|
private |
modifies aRes.EndPos
0 to continue expression
0 to terminate expression
Definition at line 387 of file parse5.cxx.
References SmTokenTableEntry::aIdent, aName, SmToken::aText, Blank, ch, SmTokenTableEntry::cMathChar, SmToken::cMathChar, coContFlags, coNumContFlags, coNumStartFlags, coStartFlags, coUserDefinedCharContFlags, SmTokenTableEntry::eType, SmToken::eType, GetTokenTableEntry(), CharClass::getType(), IsDelimiter(), LBrace, m_aBufferString, m_aCurESelection, m_aCurToken, m_aNumCC, m_nBufferIndex, m_nColOff, m_nRow, m_nTokenIndex, m_pSysCC, MS_AND, MS_ASSIGN, MS_GE, MS_GG, MS_GT, MS_LBRACE, MS_LBRACKET, MS_LE, MS_LEFTARROW, MS_LL, MS_LPARENT, MS_LT, MS_MINUS, MS_MINUSPLUS, MS_MULTIPLY, MS_NEQ, MS_OR, MS_PLACE, MS_PLUS, MS_PLUSMINUS, MS_RBRACE, MS_RBRACKET, MS_RIGHTARROW, MS_RPARENT, MS_SLASH, n, SmTokenTableEntry::nGroup, SmToken::nGroup, SmTokenTableEntry::nLevel, SmToken::nLevel, NONE, CharClass::parseAnyToken(), CharClass::parsePredefinedToken(), Power, Product, RBrace, Relation, SAL_WARN_IF, SmToken::setChar(), Standalone, Sum, TAND, TASSIGN, TBLANK, TCHARACTER, TDIVIDEBY, TDPOUND, TEND, TESCAPE, TGE, TGG, TGT, TIDENT, TLBRACKET, TLE, TLEFTARROW, TLGROUP, TLL, TLPARENT, TLT, TMINUS, TMINUSPLUS, TMULTIPLY, TNEQ, TNUMBER, TOR, TPLACE, TPLUS, TPLUSMINUS, TPOUND, TRBRACKET, TRGROUP, TRIGHTARROW, TRPARENT, TRSUB, TRSUP, TSBLANK, TSPECIAL, TTEXT, u, and UnOper.
Referenced by DoAlign(), DoAttribute(), DoBinom(), DoBlank(), DoBrace(), DoBracebody(), DoColor(), DoError(), DoEscape(), DoEvaluate(), DoFont(), DoFontAttribute(), DoFontSize(), DoFrac(), DoFunction(), DoGlyphSpecial(), DoMatrix(), DoOper(), DoOpSubSup(), DoProduct(), DoSpecial(), DoStack(), DoSubSup(), DoSubSupEvaluate(), DoTable(), DoTerm(), DoUnOper(), Parse(), and ParseExpression().
|
private |
Definition at line 943 of file parse5.cxx.
References aName, SmToken::aText, SmToken::cMathChar, coContFlags, Color, coStartFlags, SmToken::eType, CharClass::getType(), starmathdatabase::Identify_ColorName_DVIPSNAMES(), starmathdatabase::Identify_ColorName_Parser(), m_aBufferString, m_aCurESelection, m_aCurToken, m_nBufferIndex, m_nColOff, m_nRow, m_nTokenIndex, m_pSysCC, n, SmToken::nGroup, SmToken::nLevel, CharClass::parseAnyToken(), TCOLOR, TDVIPSNAMESCOL, TEND, THEX, TNONE, and u.
Referenced by DoColor().
|
private |
Definition at line 1024 of file parse5.cxx.
References SmToken::aText, SmToken::cMathChar, coContFlags, coNum16ContFlags, coNum16StartFlags, coStartFlags, SmToken::eType, CharClass::getType(), m_aBufferString, m_aCurESelection, m_aCurToken, m_nBufferIndex, m_nColOff, m_nRow, m_nTokenIndex, m_pSysCC, MS_MINUS, MS_MULTIPLY, MS_PLUS, MS_SLASH, n, SmToken::nGroup, SmToken::nLevel, NONE, CharClass::parseAnyToken(), Product, SmToken::setChar(), Sum, TDIVIDEBY, TEND, THEX, TMINUS, TMULTIPLY, TNONE, TPLUS, u, and UnOper.
Referenced by DoColor(), DoFontSize(), and DoTerm().
|
virtual |
Parse rBuffer to formula tree.
Implements AbstractSmParser.
Definition at line 2706 of file parse5.cxx.
References convertLineEnd(), DoTable(), LINEEND_LF, m_aBufferString, m_aErrDescList, m_aUsedSymbols, m_nBufferIndex, m_nColOff, m_nCurError, m_nRow, m_nTokenIndex, and NextToken().
|
virtual |
Parse rBuffer to formula subtree that constitutes an expression.
Implements AbstractSmParser.
Definition at line 2723 of file parse5.cxx.
References convertLineEnd(), DoExpression(), LINEEND_LF, m_aBufferString, m_aErrDescList, m_nBufferIndex, m_nColOff, m_nCurError, m_nRow, m_nTokenIndex, and NextToken().
|
virtual |
Implements AbstractSmParser.
Definition at line 2752 of file parse5.cxx.
References m_aErrDescList, and m_nCurError.
|
private |
Definition at line 377 of file parse5.cxx.
References m_aBufferString, m_nBufferIndex, m_nTokenIndex, and nPos.
Referenced by DoSpecial().
|
inlinevirtual |
Implements AbstractSmParser.
Definition at line 112 of file parse5.hxx.
References m_bExportSymNames.
|
inlinevirtual |
Implements AbstractSmParser.
Definition at line 110 of file parse5.hxx.
References m_bImportSymNames.
|
inlineprivate |
Definition at line 120 of file parse5.hxx.
References m_aCurToken, and SmToken::nGroup.
Referenced by DoAlign(), DoAttribute(), DoBlank(), DoBrace(), DoBracebody(), DoColor(), DoFont(), DoFontAttribute(), DoOperator(), DoProduct(), DoRelation(), DoSubSup(), DoSubSupEvaluate(), DoSum(), DoTerm(), and DoUnOper().
|
private |
Definition at line 31 of file parse5.hxx.
Referenced by DoColor(), DoTerm(), GetText(), NextToken(), NextTokenColor(), NextTokenFontSize(), Parse(), ParseExpression(), and Replace().
|
private |
Definition at line 33 of file parse5.hxx.
Referenced by DoAlign(), DoAttribute(), DoBinom(), DoBlank(), DoBrace(), DoBracebody(), DoColor(), DoError(), DoEscape(), DoEvaluate(), DoFont(), DoFontAttribute(), DoFontSize(), DoFrac(), DoFunction(), DoLine(), DoMatrix(), DoOper(), DoOperator(), DoOpSubSup(), DoProduct(), DoRelation(), DoSpecial(), DoStack(), DoSubSup(), DoSubSupEvaluate(), DoSum(), DoTable(), DoTerm(), DoUnOper(), NextToken(), NextTokenColor(), and NextTokenFontSize().
|
private |
Definition at line 32 of file parse5.hxx.
Referenced by DoAlign(), DoAttribute(), DoBinom(), DoBlank(), DoBrace(), DoBracebody(), DoColor(), DoError(), DoEscape(), DoEvaluate(), DoExpression(), DoFont(), DoFontAttribute(), DoFontSize(), DoFrac(), DoFunction(), DoGlyphSpecial(), DoLine(), DoMatrix(), DoOper(), DoOperator(), DoOpSubSup(), DoPower(), DoProduct(), DoRelation(), DoSpecial(), DoStack(), DoSubSup(), DoSubSupEvaluate(), DoSum(), DoTable(), DoTerm(), DoUnOper(), NextToken(), NextTokenColor(), NextTokenFontSize(), and TokenInGroup().
|
private |
Definition at line 34 of file parse5.hxx.
Referenced by DoError(), GetError(), NextError(), Parse(), ParseExpression(), and PrevError().
|
private |
Definition at line 46 of file parse5.hxx.
Referenced by NextToken().
|
private |
Definition at line 43 of file parse5.hxx.
Referenced by DoSpecial(), GetUsedSymbols(), and Parse().
|
private |
Definition at line 39 of file parse5.hxx.
Referenced by IsExportSymbolNames(), and SetExportSymbolNames().
|
private |
Definition at line 39 of file parse5.hxx.
Referenced by IsImportSymbolNames(), and SetImportSymbolNames().
|
private |
Definition at line 36 of file parse5.hxx.
Referenced by DoColor(), DoTerm(), NextToken(), NextTokenColor(), NextTokenFontSize(), Parse(), ParseExpression(), and Replace().
|
private |
Definition at line 38 of file parse5.hxx.
Referenced by NextToken(), NextTokenColor(), NextTokenFontSize(), Parse(), and ParseExpression().
|
private |
Definition at line 35 of file parse5.hxx.
Referenced by NextError(), Parse(), ParseExpression(), and PrevError().
|
private |
Definition at line 40 of file parse5.hxx.
Referenced by DoAlign(), DoAttribute(), DoBinom(), DoBlank(), DoBrace(), DoBracebody(), DoColor(), DoError(), DoEscape(), DoEvaluate(), DoExpression(), DoFont(), DoFontAttribute(), DoFontSize(), DoFrac(), DoFunction(), DoGlyphSpecial(), DoLine(), DoMatrix(), DoOper(), DoOperator(), DoOpSubSup(), DoPower(), DoProduct(), DoRelation(), DoSpecial(), DoStack(), DoSubSup(), DoSubSupEvaluate(), DoSum(), DoTable(), DoTerm(), and DoUnOper().
|
private |
Definition at line 37 of file parse5.hxx.
Referenced by NextToken(), NextTokenColor(), NextTokenFontSize(), Parse(), and ParseExpression().
|
private |
Definition at line 36 of file parse5.hxx.
Referenced by GetTokenIndex(), NextToken(), NextTokenColor(), NextTokenFontSize(), Parse(), ParseExpression(), and Replace().
|
private |
Definition at line 48 of file parse5.hxx.
Referenced by DoTerm(), NextToken(), NextTokenColor(), and NextTokenFontSize().