Class Name [Generic] [% Inherit] [public Library] [[Alignment] (Structure | Enumerated)] Library := Symbol Alignment := Byte | Parcel | Word | Cell | Unsigned Generic := '(' (Parameter, ... | '=' Parameter ')' Parameter := Symbol | Integer Structure := [(is | record) Field, ...] Enumerated := in ('0' to Unsigned) | (['0'], Enumeration, ...)
A Class encapsulates a set of related declarations and procedures. The preamble of the Class starts with the Class declaration followed by declarations for Structure, Record, and Enumerated types along with Import, Global, and Use declarations.
The Class body is coded after the declarations and lists the procedures belonging to the Class and designates which kind of procedure that they are. It can also include interface signatures used to make calls to external (often C/C++) procedures.