Protel


Protel stands for "Procedure Oriented Type Enforcing Language". It is a programming language created by Nortel Networks and used on telecommunications switching systems such as the DMS-100. Protel-2 is the object-oriented version of Protel.
PROTEL languages were designed to meet the needs of digital telephony and is the basis of the DMS-100 line of switching systems PROTEL is a strongly typed, block-structured language which is based heavily on PASCAL and ALGOL 68 with left-to-right style of variable assignment, variable-sized arrays, and extensible structures. The designers of PROTEL significantly extended PASCAL of the day by adding external compilation and extending the data structures available in the language.

Variables and Assignment

Variables are declared in a manner similar to Pascal.
To assign a value:
Note: The digraph '->' is colloquially called the gazinta operator.
To declare a string variable named 'FOO':
Note: PROTEL addresses arrays from 1.

Procedures

Note: Block scope is defined by BEGIN and END.

Functions

The TABLE is the basic structure. It is declared and used in a manner similar to Pascal-descended languages.

Unions

The OVERLAY is the basic union structure. It is declared and used in a manner similar to Pascal-descended languages.

AREAs

Areas are memory blocks that could be casted to TABLES and OVERLAYS. They are declared in bytes and typically are declared large enough to allow for future expansion. This is due to the desire to upgrade DMS software 'live' without requiring a restart. The modular nature of PROTEL allows relatively small chunks of code to be swapped into a load; if AREAs were planned smartly, this would not affect the placement of modules in memory, thereby avoiding a restart.

MODULEs

Files usually start with a MODULE declaration: the module is the unit of compilation.
The switch statement does NOT fall-through as it does in C.