Coral 66 Language Reference Manual

For mission-critical applications

Ministry of Defence

Acknowledgments

The information in this reference manual is based on the text of the HMSO publication Official Definition of Coral 66, first published in 1970 and reprinted with amendments in 1974. ISBN 0 11 470221 7.

This document was prepared using DocBook XML from docbook.org.


Table of Contents
Preface
Related Documents
Reader's Comments
Preface to the 1974 Edition
1. Introduction
Special-Purpose Languages
Real Time
Syntax
Implementation
2. The Coral 66 Program
Objects
Program
3. Scoping
Block Structure
Clashing of Names
Globals
Labels
Restrictions Connected with Scoping
4. Reference to Data
Numeric Types
Simple References
Array References
Packed Data
Table Declaration
Table-Element Declaration
Example of a Table Declaration
Reference to Tables and Table Elements
Storage Allocation
Presetting
Presetting of Simple References and Arrays
Presetting of Tables
Preservation of Values
Overlay Declarations
5. Place References–Switches
6. Expressions
Simple Expressions
Primaries
Word-Logic
Evaluation of Expressions
Conditional Expressions
Conditions
7. Statements
Assignments
Goto Statements
Procedure Statements
Answer Statements
Code Statements
Compound Statements
Blocks
Dummy Statements
Conditional Statements
For Statements
For-elements with STEP
For-elements with WHILE
8. Procedures
Answer Specification
Procedure Heading
Parameter Specification
Value Parameters
Data Reference Parameters
Place Parameters
Procedure Parameters
Non-Standard Parameter Specification
The Procedure Body
9. Communicators
COMMON Communicators
LIBRARY Communicators
EXTERNAL Communicators
ABSOLUTE Communicators
10. Names and Constants
Identifiers
Numbers
Literal Constants
Strings
11. Text Processing
Comment
Comment Sentences
Bracketed Comment
END Comment
Macro Facility
String Replacement
Parameters of Macros
Nesting of Macros
Deletion and Redefinition of Macros
Syntax of Comment and Macros
A. Syntax Summary
B. List of Language Symbols
C. Levels of Implementation
D. Implementation-Defined Characteristics
Language Profiles
Official Definition Profile
The XGC Profile
The Custom Profile
Implementation Details
E. Format of Code Statements
Format of Code Statements
Constraints for Operands
Simple Constraints
Multiple Alternative Constraints
Constraint Modifier Characters
M68000 Constraints
Index
List of Tables
8-1. Parameters of Procedures
D-1. Encoded Type in a Formal Pair