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

Class TIFPSPreProcessor

Unit

ifps3ppc

Declaration

type TIFPSPreProcessor = class(TObject)

Description

 

Methods

Overview

Public constructor Create;
Public destructor Destroy; override;
Public procedure AdjustMessages(Comp: TIFPSPascalCompiler);
Public procedure Clear;
Public procedure PreProcess(const Filename: string; var Output: string);

Description

Public constructor Create;

 

Public destructor Destroy; override;

 

Public procedure AdjustMessages(Comp: TIFPSPascalCompiler);

Adjust the message in IFPS3 so they will contain the modulename and all the positions will match their real positions, make sure that you call this after you compile any script (but only once)

Public procedure Clear;

Clear everything

Public procedure PreProcess(const Filename: string; var Output: string);

Call the preprocessor, filename contains the current file, if FileName is MainFileName (case sensitive) it will no call the OnNeedFile event. the preprocessor will raise an exception on any errors

Properties

Overview

Public property CurrentLineInfo: TIFPSLineInfoList;
Public property Defines: TStringList;
Public property ID: Pointer;
Public property MainFile: string;
Public property MainFileName: string;
Public property MaxLevel: Longint;
Public property OnNeedFile: TIFPSOnNeedFile;

Description

Public property CurrentLineInfo: TIFPSLineInfoList;

Current line information

Public property Defines: TStringList;

Defines for the parser

Public property ID: Pointer;

Id Pointer, not used by the preprocessor

Public property MainFile: string;

The contents of the "main" file

Public property MainFileName: string;

The filename of the MainFile

Public property MaxLevel: Longint;

The maximum number of levels deep the parser will go, defaults to 20

Public property OnNeedFile: TIFPSOnNeedFile;

OnNeedFile event, is called when the parser needs a file