Methods |
Top Previous Next |
Code generation > Supporting code > CTT_Parser > Methods
The virtual methods of the class CTT_Parser are partly overwritten in generated parsers or can be overwritten by the developer in a class of his own.
virtual int GetNext( state_type& xState, int xiNode, int xiScannerIndex = -1, int xiSkipScannerIndex = -1, ELState xe = eDefault, const char* xpProduction = NULL, const char* xpSymbol = NULL);
virtual int ConstGetNext( state_type& xState, int xiNode, int xiScannerIndex = -1, int xiSkipScannerIndex = -1, ELState xe = eDefault, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual bool LA_GetNext( state_type& xState, int xiNode, int xiScannerIndex = -1, int xiSkipScannerIndex = -1, ELState xe = eDefault, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual int GetStartSym( state_type& xState, int xiScannerIndex, int xiSkipScannerIndex, int xiNode, const char* xpProduction = NULL, const char* xpSymbol = NULL);
virtual int ConstGetStartSym( state_type& xState, int xiScannerIndex, int xiSkipScannerIndex, int xiNode, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual int LA_GetStartSym( state_type& xState, int xiScannerIndex, int xiSkipScannerIndex, int xiNode, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual bool AcceptAndGetNext( state_type& xState, int xiSym, int xiScannerIndex, int xiSkipScannerIndex, ELState xe, const char* xpProduction = NULL, const char* xpSymbol = NULL);
virtual bool LA_AcceptAndGetNext( state_type& xState, int xiSym, int xiScannerIndex, int xiSkipScannerIndex, ELState xe, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual bool ConstAcceptAndGetNext( state_type& xState, int xiSym, int xiScannerIndex, int xiSkipScannerIndex, ELState xe, const char* xpProduction = NULL, const char* xpSymbol = NULL) const; virtual bool Accept( state_type& xState, int xiSym, const char* xpProduction = NULL, const char* xpSymbol = NULL);
virtual bool ConstAccept( state_type& xState, int xiSym, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual bool AcceptSkip( state_type& xState, int xiSym, const char* xpProduction = NULL, const char* xpSymbol = NULL);
virtual bool ConstAcceptSkip( state_type& xState, int xiSym, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual bool LA_Accept( state_type& xState, int xiSym, const char* xpProduction = NULL, const char* xpSymbol = NULL) const;
virtual int CheckInclusion(state_type& xState, int xiNode, const char* xpProduction, const char* xpBranch) {return 0;}
virtual int ConstCheckInclusion(state_type& xState, int xiNode, const char* xpProduction, const char* xpBranch) const {return 0;}
virtual int LA_CheckInclusion(state_type& xState, int xiNode, const char* xpProduction, const char* xpBranch) const {return 0;}
virtual GUARD ProductionBegin(state_type& xState, int xiScannerIndex, int xiSkipScannerIndex, ELState xe, int xiProdIndex, const char* xpProduction);
virtual GUARD ConstProductionBegin(state_type& xState, int xiScannerIndex, int xiSkipScannerIndex, ELState xe, int xiProdIndex, const char* xpProduction) const;
virtual GUARD LA_ProductionBegin(state_type& xState, int xiScannerIndex, int xiSkipScannerIndex, ELState xe, int xiProdIndex, const char* xpProduction) const;
virtual void OnErrorExpected(state_type& xState, int xiSym, const char* xpProduction, const char* xpBranch);
virtual void OnErrorExpected(state_type& xState, int xiSym, const char* xpProduction, const char* xpBranch) const;
virtual void OnErrorSkipExpected(state_type& xState, int xiSym, const char* xpProduction, const char* xpBranch);
virtual void OnErrorSkipExpected(state_type& xState, int xiSym, const char* xpProduction, const char* xpBranch) const;
virtual void OnErrorUnexpected(state_type& xState, const char* xpProduction, const char* xpBranch);
virtual void OnErrorUnexpected(state_type& xState, const char* xpProduction, const char* xpBranch) const;
virtual void OnErrorStandstill(state_type& xState, const char* xpProduction, const char* xpBranch);
virtual void OnErrorStandstill(state_type& xState, const char* xpProduction, const char* xpBranch) const;
virtual void OnErrorIncomplete(state_type& xState, const char* xpProduction, const char* xpBranch);
virtual void OnErrorIncomplete(state_type& xState, const char* xpProduction, const char* xpBranch) const;
virtual void AddMessage(state_type& xState, const string_type& xs) const;
virtual void AddWarning(state_type& xState, const string_type& xs) const;
virtual void AddError(state_type& xState, const string_type& xs) const;
virtual void GenError(state_type& xState, const string_type& xs) const;
virtual void AddMessage(state_type& xState, const string_type& xs, difference_type xuiLastPosition, difference_type xuiPosition, const char* xpProductionm, const char* xpSymbol, EMsgType xeMsgType) const;
virtual void SourceName(const string_type& xsSourcename, bool xbIsLastFile = true); virtual void TargetName(const string_type& xsTargetname); virtual void SourceRoot(const string_type& xsSourceRoot); virtual void TargetRoot(const string_type& xsTargetRoot);
virtual void AddDynamicTokens(plugin_ptr_type xpPlugin) const {} // has to be overwritten
virtual void OnAcceptToken(state_type& xState) {/* to be overwritten */}; virtual void OnAcceptToken(state_type& xState) const {/* to be overwritten */}; virtual void OnParseError(state_type& xState) {/* to be overwritten */}; virtual void OnParseError(state_type& xState) const {/* to be overwritten */}; virtual void OnEnterProduction(state_type& xState) {/* to be overwritten */}; virtual void OnEnterProduction(state_type& xState) const {/* to be overwritten */}; virtual void OnExitProduction(state_type& xState) {/* to be overwritten */}; virtual void OnExitProduction(state_type& xState) const {/* to be overwritten */};
virtual bool IsDone(state_type& xState, int xi) const;
|
This page belongs to the TextTransformer Documentation |
Home Content German |