Declarations

Table of Contents

ALPHA Declaration
ARRAY Declaration
PRIVATE and PUBLIC Specifiers
LONG Arrays
OWN Arrays
Identifiers
Array Class
Bound Pair List
Examples of ARRAY Declarations
ARRAY REFERENCE Declaration
Identifiers
Lower Bounds
Examples of ARRAY REFERENCE Declarations
BOOLEAN Declaration
Equation Part
Boolean Simple Variable Values
Examples of BOOLEAN Declarations
COMPLEX Declaration
Complex Variables
Examples of COMPLEX Declarations
CONNECTION BLOCK REFERENCE VARIABLE Declaration
CONNECTION BLOCK TYPE Declaration
Examples of CONNECTION BLOCK TYPE Declaration
CONNECTION LIBRARY Declaration
Explanation
DEFINE Declaration
Formal Symbol Part
Define Invocation
Examples of DEFINE Declarations
DINTEGER Declaration
Declaration of Simple Variables
Examples of DINTEGER Declarations
DIRECT ARRAY Declaration
Declaring Direct Arrays
Examples of DIRECT ARRAY Declarations
DOUBLE Declaration
Declaration of Simple Variables
Examples of DOUBLE Declarations
DUMP Declaration
Control Part
Form of Output
Examples of DUMP Declarations
EPILOG PROCEDURE Declaration
Restrictions on Epilog Procedures
Example of an Epilog Procedure
EVENT and EVENT ARRAY Declarations
Event Designator
Examples of EVENT and EVENT ARRAY Declarations
EXCEPTION PROCEDURE Declaration
Restrictions on Exception Procedures
Example of an EXCEPTION PROCEDURE Declaration
EXPORT Declaration
Library Entry Point Types and Parameters
Conditions in Which Errors Can Occur
Examples of EXPORT Declarations
EXPORTLIBRARY Declaration
FILE Declaration
Identifiers
Attribute Specifications
Examples of FILE Declarations
FORMAT Declaration
In-Out Part
Format Part
Editing Phrases
Editing Modifiers
Examples of FORMAT Declarations
FORWARD REFERENCE Declaration
Order of Referencing
Examples of FORWARD REFERENCE Declarations
IMPORTED Declaration
Examples of IMPORTED Declaration
INTEGER Declaration
Equation Part
Examples of INTEGER Declarations
INTERLOCK and INTERLOCK ARRAY Declarations
Interlock Designator
INTERRUPT Declaration
Interrupting a Program
Examples of INTERRUPT Declarations
LABEL Declaration
Using Label Identifiers
Examples of LABEL Declarations
LIBRARY Declaration
Library Attribute Specifications
Examples of LIBRARY Declarations
LIST Declaration
List Elements
Examples of LIST Declarations
MONITOR Declaration
Monitor Elements
Examples of MONITOR Declarations
OUTPUTMESSAGE ARRAY Declaration
Output Message
Translators' Help Text
Examples of OUTPUTMESSAGE ARRAY Declarations
PENDING PROCEDURE Declaration
PENDING PROCEDURE ACTUAL Declaration
PICTURE Declaration
String Literals
Introduction
Introduction Codes
Characters Used by Picture Symbols
Flip-Flops Used by Picture Symbols
Character Fields
Picture Skip Characters
Control Character
Single Picture Characters
Picture Characters
Examples of PICTURE Declarations
POINTER Declaration
OWN Pointers
Lex Level Restriction Part
Examples of POINTER Declarations
PROCEDURE Declaration
Identifiers
Formal Parameter Part
Specification
Allowed Formal and Actual Parameters
Parameter Matching
Examples of PROCEDURE Declarations
PROCEDURE REFERENCE Declaration
Identifiers
Example of a PROCEDURE REFERENCE Declaration
PROCEDURE REFERENCE ARRAY Declaration
Placement of Procedure Reference Arrays
Example of a PROCEDURE REFERENCE ARRAY Declaration
PROLOG PROCEDURE Declaration
REAL Declaration
Declaration of Simple Variables
Examples of REAL Declarations
SIMPLE VARIABLE Declaration
STRING Declaration
STRING Type
Examples of STRING Declarations
STRING ARRAY Declaration
String Array Type
Examples of STRING ARRAY Declarations
STRUCTURE BLOCK ARRAY Declaration
STRUCTURE BLOCK REFERENCE VARIABLE Declaration
STRUCTURE BLOCK TYPE Declaration
STRUCTURE BLOCK VARIABLE Declaration
SWITCH FILE Declaration
Switch File List
Example of a SWITCH FILE Declaration
SWITCH FORMAT Declaration
Switch Format List
Examples of SWITCH FORMAT Declarations
SWITCH LABEL Declaration
Switch Label List
Examples of SWITCH LABEL Declarations
SWITCH LIST Declaration
List Designator
Example of a SWITCH LIST Declaration
TASK and TASK ARRAY Declarations
Task and Task Array Designator
Examples of TASK and TASK ARRAY Declarations
TRANSLATETABLE Declaration
Translation Specifier
Translate Table Indexing
Examples of TRANSLATETABLE Declarations
TRUTHSET Declaration
Membership Expression
Truth Set Test
Examples of TRUTHSET Declarations
VALUE ARRAY Declaration
Constants
Example of a VALUE ARRAY Declaration

A declaration associates certain characteristics and structures with an identifier. In an ALGOL program, every identifier must be declared before it is used. The compiler ensures that subsequent usage of an identifier in a program is consistent with its declaration.

In this section, the ALGOL declarations are listed and discussed in alphabetical order. In many cases, the entire syntax diagram for a declaration is divided into smaller segments, and each segment is discussed in turn. Each declaration is accompanied by examples of its use.