Program and Library Modules

Declares the name of a module, and identifies the variables, procedures, and events that it contains.

Syntax

{ Program [ = ] module_name
| Library module_name }

[ Where attribute ]
…

[ statements ]

Parts

module_name
Mandatory name for the module.
When used with Program =, it specifies the name of the procedure that starts the program.
Where
Optional keyword you can use again and again.
attribute
Necessary after Where.

Attribute

attrib_name = { string_literal | version_literal }
attrib_name
A name.
string_literal
Text between quotation marks, for example, "example text".
version_literal
Three or four groups of Decimal numbers with a dot (.) between each group, for example, 1.2.3 or 12.34.56.789.
statements
Optional declarations and executable statements.

Instructions

After optional comments, one of the keywords Program or Library must start the code in a source file. The program module, which starts with Program, specifies where execution of the program starts. A library module, which starts with Library, specifies code that you can only use from other program and library modules.

Examples

TODO

See also