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

| `procedure Next;`
| `procedure SetText(const Data: string);`

### Description

| `procedure Next;`

Go to the next token

| `procedure SetText(const Data: string);`

Load a script

## Properties

### Overview

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

### Description

| `property Col: Cardinal;`

The current col

| `property CurrTokenID: TIFPasToken;`

The current token ID

| `property CurrTokenPos: Cardinal;`

The current token position

| `property EnableComments: Boolean;`

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

| `property EnableWhitespaces: Boolean;`

| `property GetToken: string;`

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

| `property OnParserError: TIFParserErrorEvent;`

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

| `property OriginalToken: string;`

Return the token but do not uppercase it

| `property Row: Cardinal;`

The Current row