Parts

An EGL file contains a set of parts, each of which is a unit of declaration in the overall declaration of the program. You declare parts in whatever order is convenient for you, and you name each one.

Parts are categorized as logic, data, user interface (UI), or build parts:

Logic, data, and user interface parts are also categorized as primary parts or subparts. The primary parts are as follows:

An EGL source file can include zero to many subparts but can include no more than one primary part. The primary part (if any) must be at the top level of the file and must have the same name as the file.

Related concepts

Build descriptor part
Compatibility with VisualAge Generator
DataItem part
EGL projects, packages, and files
Function part
Import
Introduction to EGL

Linkage options part
Program part
Record parts
References to parts
References to variables and constants
Resource associations and file types
Run-time configurations
Structure
Typedef
Web support

Related reference
EGL build-file format
EGL editor
EGL source format
EGL statements
Primitive types