Symbol numbers |
Top Previous Next |
There is an integer parameter in the event handlers OnAcceptToken and OnEnterProduction
xeSymno : Integer
This integer denotes the respective token or the respective production uniquely. The TextTransformer IDE can produce Delphi-files with these enumerated values. E.g. the enumeration of the productions may look like:
EProduction = ( // production enumeration (don't delete this marker) pdTextD2Html, // Text2Html pdContent, // Content ... );
If such a file is included in the program, then functions can be called for the corresponding productions in the event handlers mentioned above in a simple way.
case EProduction(xeSymno) of pdTextD2Html: HandleText2Html(): pdContent: HandleContent();
|
This page belongs to the TetraComponents Documentation |
Home Content German |