Next:
Preface
Contents
The MPD Programming Language
A Guide to the Sequential Subset
Version: September 2003
Preface
Contents
Overview
Types
Basic Types
Booleans
Integers
Real numbers
Characters
Strings
Relations on Basic Types
Equality
Order
Relational operators
Functions on Ordered Types
User defined types
Type declarations
Type definitions
Arrays
Observe!
Array constructors
Enumerations
Records
Record Constructors
Unions
Pointers
Variables and constants
Variables
Observe!
Predefined Array Functions
Constants
References and Dereferences
Subscripting and Slicing
Substrings
Specifying Record and Union Fields
Pointers
Warning!
More Complex Examples
Assignment Operators
Type Equivalence
Warning!
Type Conversions
Implicit Conversion
Explicit Conversion
Sequential Control
The Skip Statement
The Stop Statements
The If Statement
Warning!
The For Statement
Warning!
Warning!
The Exit and Next Statements
Operations, Procedures and Processes
Operation declarations
Operation Restriction
Parameter Passing
Proc declarations
Returning values
Operation Invocation
Operation Types
Operation Capabilities
Procedures
Example
Usage of Array Parameters
Warning!
Resources and Globals
Resources
Example
Simple resources
Separate Spec and Body
Example
Imports
Creating Resource Instances
Using resource capability variables
Initial and final code
Globals
Basic Input and Output
Files and File Access
Simple I/O
Formatted I/O
Character I/O
Random Access
Command Line Arguments
External Operations
David Sands 2003-09-05