OnParserMessage

Top  Previous  Next

TCustomTextTransformer > events > OnParserMessage

The event OnParserMessage occurs, if, when parsing (analyzing) the source text, a syntax fault appears.

 

  property OnParserMessage : TOnParserMessage

           read FOnParserMessage  write FOnParserMessage;

  

  TOnParserMessage = procedure (Sender : TObject;

                                xasWhat : AnsiString;

                                xlwLastPosition : longword;

                                xlwPosition : longword;

                                const xasProduction : AnsiString;

                                const xasSymbol : AnsiString;

                                xeMessageType : Integer; xlw :

                                longword = 0)  of object;

 

Parameter

Meaning

xasWhat

contains the text of the error message.

xiLastPosition

is the start position of the token recognized last.

xiPosition

is the start position of the expected token.

xasProduction

contains the name of the production in which the fault appeared.

xasSymbol

indicates the name of the expected token or the name of the branching in which the fault appeared. This depends on the kind of the error.

xeMessageType

specifies the kind of message (see above).

xi

is reserved for internal purposes of the producer (localization).

 

xeMessageType

 

Value

Meaning

0

neutral Message

1

user-defined abort (EXIT)

2

user-defined abort (EXIT OK)

3

warning

4

general error

5

error at parsing

6

semantical error in the c++ interpreter

7

success

 
 



This page belongs to the TetraComponents Documentation

Home  Content  German