1. PreProcessor & EXE-Compiler

<< Click to Display Table of Contents >>

Navigation:  2. Components > 1. PreProcessor & EXE-Compiler >

1. PreProcessor & EXE-Compiler

1.0 Smart Package Robot 's Preprocessor

Previous Top Next


Preprocessor-Directives

 

Smart Package Robot 's PreProcessor

 

The Preprocessor is the first Step in Script Execution. During this step, the Code will be changed by certain rules, before any other execution is done.

 

 

graphic

 

Smart Package Robot 's unique Preprocessor offers features like:

  define your own commands (MACRO's)

 The Preprocessor will also read the INLINE-Data between VDA. - VDE. and bring them into a Form where the Script can be executed with maximum Speed.

  use parameters with your own commands

  return results from your own "Macros" inside variables

  Overload Macros using GVT. (get Variable Type)

  react on the number of Parameters given.

  use Macros inside Macros

  use SAV. and SAV.Restore to make all used Variables "Local".

  Use VBS and Powershell inside your Macro's. (See VBS. and PWS.)

  use unique-labels and variables in your MACRO's

  include your personal subprograms with just one line of code, before the script runs using #INC:

  Influence the script-code before its being executed

 

To enable these features, the preprocessor analyzes and changes the script immediately before script execution.

Therefore the Preprocessor is not really a part of script-execution, its rather a script preparation.

 

Below is a schematic diagram of the Script execution process.

As you can see, the Preprocessor takes its part as step number two.

 

The preprocessor touches the script before execution. Therefore the execution stage will get the script that has already gone through the preprocessor.

 

PreProcessor commands generally start with a "#", followed by three letters. Please do not intermix PreProcessor-commands with Compiler-Commands. Compiler Commands are executed during compilation, and when the script is unpacked on the target machine.
 

Compiler-Commands generally start with a ' (Comment-Sign) to prevent them from being executed.
 
Preprocessor commands start with a "#".
Compiler-Directives start with " '#".

 
 

graphic

 

 

 

Sample-Macros see here: ! User-Macros

 

 

See also:

! Smarty's Preprocessor

1.1 #INC: - Pre-Processor File-Include

1.2 #ONCE / # OEND - Multiple Include Protection

1.8 : - MACRO-Definitions

1.4 #IF ... #EIF - Decisions in Macros