Pascal Language Reference
Preface
1. Lexical Elements
- Character Set
- Special Symbols
- Reserved Words
- Identifiers
- Comments
2. Data Types
- Summary of Data Format Differences
- Default Data Alignments and Padding
- Data Formats with -calign-
- Data Formats with -xl-
- Data Formats with -calign and -xl-
- real
- real Variables
- real Initialization
- real Constants
- Data Representation
- Integer
- Integer Variables
- Integer Initialization
- Integer Constants
- Data Representation
- boolean
- boolean Variables
- boolean Initialization
- boolean Constants
- Data Representation
- Character
- Character Variables
- Character Initialization
- Character Constants
- Data Representation
- Enumerated Types
- Enumerated Variables
- Data Representation
- Subrange
- Subrange Variables
- Data Representation
- Record
- Record Variables
- Record Initialization
- Data Representation of Unpacked Records
- Data Representation of Packed Records
- Array
- Array Variables
- Array Initialization
- Packed Arrays
- Data Representation
- Set
- Set Variables
- Set Initialization
- Packed Sets
- Data Representation
- File
- Pointer
- Standard Pointer
- Universal Pointer
- Procedure and Function Pointers
- Pointer Initialization
- Data Representation
3. Statements
- Standard Statements
- Statements Specific to Pascal
- assert Statement
- case Statement
- exit Statement
- goto Statement
- next Statement
- otherwise Statement
- return Statement
- with Statement
4. Assignments and Operators
- Data Type Assignments and Compatibility
- String Assignments
- Fixed- and Variable-Length Strings
- Null Strings
- String Constants
- Operators
- Arithmetic Operators
- The mod Operator
- Bit Operators
- boolean Operators
- The and then Operator
- The or else Operator
- Set Operators
- Relational Operators
- Relational Operators on Sets
- The = and <> Operators on Records and Arrays
- String Operators
- Precedence of Operators
5. Program Declarations
- Declarations
- Label Declaration
- Constant Declaration
- Type Declaration
- Variable Declaration
- Define Declaration
- Procedure and Function Headings
- Visibility
- Parameter List
- Type Identifier
- Functions Returning Structured-Type Results
- Options
6. Built-In Procedures and Functions
- Standard Procedures and Functions
- Routines Specific to Pascal (Summary)
- Routines Specific to Pascal (Details)
- addr
- append
- argc-
- argv
- arshft-
- asl-
- asr-
- card
- clock
- close
- concat
- date
- discard
- expo
- filesize
- firstof
- flush
- getenv
- getfile
- halt
- in_range
- index
- land
- lastof
- length
- linelimit
- lnot
- lor
- lshft
- lsl
- lsr
- max
- message
- min
- null
- open
- pcexit
- random
- read and readln
- remove
- reset
- rewrite
- rshft
- seed
- seek
- sizeof
- stlimit
- stradd
- substr
- sysclock
- tell
- time
- trace
- trim
- Type Transfer
- wallclock
- write and writeln
- xor
7. Input and Output
- Input and Output Routines
- eof and eoln Functions
- More About eoln
- External Files and Pascal File Variables
- Permanent Files
- Temporary Files
- input, output, and errout Variables
- Properties of input, output, and errout Variables
- Associating input with a File Other Than stdin-
- Associating output with a File Other Than stdout
- Associating errout with a File Other Than stderr
- Pascal I/O Library
- Buffering of File Output
- I/O Error Recovery
A. Overview of Pascal Extensions
- Lexical Elements
- Data Types
- Statements
- Assignments and Operators
- Headings and Declarations
- Procedures and Functions
- Built-In Routines
- Input and Output
- Program Compilation
B. Pascal and DOMAIN Pascal
- The -xl Option
- DOMAIN Pascal Features Accepted but Ignored
- DOMAIN Pascal Features Not Supported
C. Implementation Restrictions
- Identifiers
- Data Types
- real
- Integer
- Character
- Record
- Array
- Set
- Alignment
- Nested Routines
- Default Field Widths
D. Pascal Validation Summary Report
- Test Conditions
- Manufacturer's Statement of Compliance
- Implementation-Defined Features
- Reporting of Errors
- Implementation-Dependent Features
- Extensions
Glossary
Index