Mesa.form
Brief summary of what this module does. This form is intended to be used in conjunction with the Cedar.style for Cedar 5.0, presently (November 11, 1983) located on [Indigo]<PreCedar>Tioga>. Choose either the DEFINITIONS section or the PROGRAM section and delete the other.
Last Edited by: Taft, November 11, 1983 12:37 pm
DIRECTORY
Interface USING [Item],
Interface USING [Item];
Name: CEDAR DEFINITIONS =
BEGIN
Major section heading (comment node with format "head", at top level)
This paragraph is a comment node with format "body", which makes it be formatted the same as a paragraph in a memo. It is intended for extensive documentation or commentary, and italicization is suppressed in order to make it easier to read. Additional paragraphs with the same properties should be created by appending to this one, or by copying it.
All Cedar code, as well as lower-level comments, have the format "code". Use of that format has two major effects:
1. Top-level declarations (at level 2, immediately below the headings) get extra leading automatically; there is no need to insert empty nodes.
2. When a code line wraps around, the continuation lines get a large indentationmuch larger than the indentation for the next level of nesting. This makes the difference between a continuation and a nested statement immediately apparent. It also eliminates the need to manually break long statements in the middle. Just let every statement occupy a line, and it will be formatted correctly regardless of the width of the viewer displaying the program.
It is suggested that you make new code nodes by copying or appending to existing ones, rather than by trying to construct them from whole cloth.
Handle: TYPE = REF OpaqueObject;
OpaqueObject: TYPE;
Name: TYPE = RECORD [
Field: Type,
Field: Type];
Name: TYPE = {Name, Name};
Name: PROCEDURE [Args] RETURNS [Results];
! List of ERRORs and SIGNALs that can be raised by the procedure;
Description of procedure. This node has property Comment: TRUE and no other looks or formats.
Name: PROCEDURE [Args] RETURNS [Results];
! List of ERRORs and SIGNALs that can be raised by the procedure;
Description of procedure. This node has property Comment: TRUE and no other looks or formats.
END.
Name: CEDAR PROGRAM
IMPORTS ImportsList
EXPORTS ExportsList
= BEGIN
Major section heading (comment node with format "head", at top level)
This paragraph is a comment node with format "body". Additional paragraphs with the same properties should be created by appending to this one, or by copying it.
Name: PROCEDURE [Args] RETURNS [Results] =
BEGIN
Body
END;
Name: PUBLIC PROCEDURE [Args] RETURNS [Results] =
BEGIN
Body
END;
Name: ENTRY PROCEDURE [Args] RETURNS [Results] =
BEGIN ENABLE UNWIND => RestoreInvariant;
Body
END;
Name: INTERNAL PROCEDURE [Args] RETURNS [Results] =
BEGIN
Body
END;
END.