Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Class TIfPascalParser

Unit

ifps3utl

Declaration

type TIfPascalParser = class(TObject)

Description

TIfPacalParser is the parser used to parse the scripts

Methods

Overview

Public procedure Next;
Public procedure SetText(const Data: string);

Description

Public procedure Next;

Go to the next token

Public procedure SetText(const Data: string);

Load a script

Properties

Overview

Public property Col: Cardinal;
Public property CurrTokenID: TIFPasToken;
Public property CurrTokenPos: Cardinal;
Public property EnableComments: Boolean;
Public property EnableWhitespaces: Boolean;
Public property GetToken: string;
Public property OnParserError: TIFParserErrorEvent;
Public property OriginalToken: string;
Public property Row: Cardinal;

Description

Public property Col: Cardinal;

The current col

Public property CurrTokenID: TIFPasToken;

The current token ID

Public property CurrTokenPos: Cardinal;

The current token position

Public property EnableComments: Boolean;

only applicable when Token in [CSTI_Identifier, CSTI_Integer, CSTI_Real, CSTI_String, CSTI_Char, CSTI_HexInt]

Public property EnableWhitespaces: Boolean;

 

Public property GetToken: string;

Return the token in case it is a string, char, integer, number or identifier

Public property OnParserError: TIFParserErrorEvent;

Parser error event will be called on (syntax) errors in the script

Public property OriginalToken: string;

Return the token but do not uppercase it

Public property Row: Cardinal;

The Current row