OnAcceptToken

Top  Previous  Next

TCustomTextTransformer > events > OnAcceptToken

 

The event OnAcceptToken occurs, if a token with the name xasName recognized by the scanner is found and accepted in the grammar. The three longword parameters are positions of the input:

 

  property OnAcceptToken : TOnAcceptToken 

           read FOnAcceptToken  write FOnAcceptToken;

  

  TOnAcceptToken = procedure (Sender : TObject; 

                              const xasName : AnsiString; 

                              xeSymno : INTEGER;

                              xuiIgnoreBegin : longword; 

                              xuiRecognizedBegin : longword; 

                              xuiIgnoreEnd : longword; 

                              xbIsSkip : Boolean)  of object;

 

xasName

name of the token or text in quotes, if the token has no name

xeSymno

symbol number

xuiIgnoreBegin

the begin ot the ignored text section at the end of the last recognized token

xuiRecognizedBegin

the begin of the actual recognized token

xuiRecognizedEnd

the end of the actual recognized token

xbIsSkip

tells, whether it has been a SKIP-token

 

 



This page belongs to the TetraComponents Documentation

Home  Content  German