PAscript Program Structure
- Updated2025-10-31
- 1 minute(s) read
PAscript Program Structure
The body of a PAscript program is enclosed by the keywords program and endprogram.
The code between these two keywords describes the variable declaration, initialization, and general sequence of the program.
Place the code that you call from the program multiple times in reusable blocks called functions.
The structure of each PAscript program is described as follows:
program
section globals
global variable declarations
endsection
static local variable declarations
section initialization
code that should be executed just once during the first execution
endsection
local variable declarations and remaining program code
endprogram
local functions and class definitions