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

 

AllowComplexIdent

property AllowComplexIdent: Boolean read write

AllowDoubleQuotedIdent

property AllowDoubleQuotedIdent: Boolean read write

Col

Column

property Col: Cardinal read

CurrTokenID

The current token ID.

property CurrTokenID: TROPasToken read

CurrTokenPos

The current token position.

property CurrTokenPos: Cardinal read

GetToken

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

property GetToken: string read

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

Row

Row

property Row: Cardinal read

SetText

Loads a script.

procedure SetText(const Data: string)

Parameters:

  • Data:

 

AllowComplexIdent

property AllowComplexIdent: Boolean read write

AllowDoubleQuotedIdent

property AllowDoubleQuotedIdent: Boolean read write

Col

Column

property Col: Cardinal read

CurrTokenID

The current token ID.

property CurrTokenID: TROPasToken read

CurrTokenPos

The current token position.

property CurrTokenPos: Cardinal read

GetToken

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

property GetToken: string read

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

Row

Row

property Row: Cardinal read

 

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)