TROPascalParser

Overview

TROPascalParser is an internal class used for parsing strings.

TROPascalParser is used internally in the TROMacroParser and in TDAExpressionEvaluator

Location

  • Unit: uDAMacros.pas

 

Col

Column

property Col: Cardinal read write

CurrTokenID

The current token ID.

property CurrTokenID: TROPasToken read write

CurrTokenPos

The current token position.

property CurrTokenPos: Cardinal read write

GetToken

Returns the token if it is a string, char, integer, number or identifier.

property GetToken: string read write

Next

Goes to the next token.

procedure Next

OnParserError

A parser error event will be called on (syntax) errors in the script.

property OnParserError: TROParserErrorEvent read write
delegate: procedure OnParserError(Parser: TObject; Kind: TROParserErrorKind)

OpenBlockEscape

Means you can use [something] to escape identifiers.

property OpenBlockEscape: Boolean read write

OriginalToken

Returns the token but does not put it in uppercase.

property OriginalToken: string read write

Row

Row

property Row: Cardinal read write

SetText

Loads a script.

procedure SetText(const Data: string)

Parameters:

  • Data:

 

Col

Column

property Col: Cardinal read write

CurrTokenID

The current token ID.

property CurrTokenID: TROPasToken read write

CurrTokenPos

The current token position.

property CurrTokenPos: Cardinal read write

GetToken

Returns the token if it is a string, char, integer, number or identifier.

property GetToken: string read write

OpenBlockEscape

Means you can use [something] to escape identifiers.

property OpenBlockEscape: Boolean read write

OriginalToken

Returns the token but does not put it in uppercase.

property OriginalToken: string read write

Row

Row

property Row: Cardinal read write

 

Next

Goes to the next token.

procedure Next

SetText

Loads a script.

procedure SetText(const Data: string)

Parameters:

  • Data:

 

OnParserError

A parser error event will be called on (syntax) errors in the script.

property OnParserError: TROParserErrorEvent read write
delegate: procedure OnParserError(Parser: TObject; Kind: TROParserErrorKind)