Language reference
PXX implements a traditional Object Pascal dialect. This section documents the language surface as the compiler actually accepts it.
Status: in progress. Pages are added as features are documented and verified against the compiler. Each example here compiles on the pinned compiler.
Pages
- Pascal basics — program structure, declarations, statements, routines, and units.
- Types — ordinals, floats, strings, records, dynamic and fixed arrays, enumerations, sets, pointers, and variants.
- Classes & interfaces — fields, methods, virtual/override, constructors, and properties (including indexed and default properties).
- Generics — generic functions, generic classes, and explicit named specialization.
- Exceptions — try/except/finally blocks, raising, and unwinding.
- PXX dialect — extensions and deliberate PXX-specific surface.
- FPC compatibility — what matches FPC, what does not, and how to write portable code.