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.[1][2] Protel-2 is the object-oriented version of Protel.[3][4]
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.[3]
Variables are declared in a manner similar to Pascal.
To assign a value:
Note: The digraph '->' is colloquially called the gazinta operator (because, in the example above, 5 goes into (=gazinta) MYVAR).
To declare a string variable named 'FOO':
Note: PROTEL addresses arrays from 1.
Note: Block scope is defined by BEGIN and END.
The TABLE is the basic structure. It is declared and used in a manner similar to Pascal-descended languages.
The OVERLAY is the basic union structure. It is declared and used in a manner similar to Pascal-descended languages.
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.
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.
|title=
(help)
By: Wikipedia.org
Edited: 2021-06-18 18:17:17
Source: Wikipedia.org