Previous Next Contents Index Doc Set Home


Preface


The Sun Workshop Compiler Pascal 4.2 is an implementation of the Pascal language that includes all the standard language elements and many extensions. These extensions allow greater flexibility in programs include:

In addition, Pascal 4.2 contains a compiler switch, -xl, to provide compatibility with Apollo® DOMAIN® Pascal to ease the task of porting your Apollo Pascal applications to workstations.


Note - All references to Pascal in this manual refer to the Sun Workshop Compiler Pascal 4.2 unless otherwise indicated.


Audience

This manual provides reference material for the Pascal 4.2 compiler. To use this manual, you should be familiar with ISO standard Pascal and with Solaris commands and concepts.


Operating Environment

The Sun Workshop Compiler Pascal 4.2 runs on SolarisTM 2.x systems.

For other release-specific information, see the README file.


Installation

Instructions for installing Pascal and other software on your SPARCstation are given in the Sun WorkShop Installation and Licensing Guide, which includes information on installing the online documentation.


How This Manual Is Organized

This manual is a reference manual for Pascal extensions to Standard Pascal. Chapters 1 through 7 describe extensions to the elements of a Pascal program:

As each extension is presented, a complete example is provided to illustrate that extension.

This manual also has four appendixes:

A glossary and an index are included at the end of the manual.


Conventions Used in This Manual

This manual contains syntax diagrams of the Pascal language in extended Backus-Naur Formalism (BNF) notation. It uses the following meta symbols:

Table  P-1 BNF Meta Symbols

Meta Symbol
Description

::=

Defined as

|

Can be used as an alternative

(a | b)

Either a or b

[ a ]

Zero or one instance of a

{ a }

Zero or more instances of a

'abc'

The characters abc

The following table describes the type styles and symbols used in this manual:

Table  P-2 Typographic Conventions

Typeface or Symbol
Meaning
Example

AaBbCc123

The names of commands, files, and directories; on-screen computer output

Edit your .login file.

Use ls -a to list all files.

hostname% You have mail.

AaBbCc123

What you type, contrasted with on-screen computer output

hostname% su

Password:

AaBbCc123

Command-line placeholder:

replace with a real name or value

To delete a file, type rm filename.

AaBbCc123

Book titles, new words or terms, or words to be emphasized

Read the User's Guide.
These are called class options.

You must be root to do this.


Shell Prompts in Command Examples

The following table shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.

Table  P-3 Shell Prompts

Shell
Prompt

C shell prompt

machine_name%

C shell superuser prompt

machine_name#

Bourne shell and Korn shell prompt

$

Bourne shell and Korn shell superuser prompt

#


Related Documentation

This manual is designed to accompany the following documents:

Both this manual and the Pascal User's Guide are available in the AnswerBook® system, an online documentation viewing tool that takes advantage of dynamically linked headings and cross-references. The Sun WorkShop Installation and Licensing Guide shows you how to install AnswerBook.

Manual Page

Pascal 4.2 provides an online manual page (also known as a man page), on pc(1), that describes the Pascal compiler. This document is included in the Pascal package and must be installed with the rest of the software.

After you install the documentation, you can read about pc by entering the man command followed by the command name, as in:

hostname% man pc

README Files

The README default directory is: /opt/SUNWspro/READMEs

This directory contains the following files:

This paper is also available in the AnswerBook system.

Other Related Documentation

Other reference material includes:

Incremental Link Editor (ild)
Numerical Computation Guide
Performance Profiling Tools

Documents in Hard Copy and in AnswerBook

The following table shows what documents are online, in hard copy, or both:

Table  P-4 Documents in Hard Copy and in AnswerBook  

Title
Hard Copy
Online

Pascal User's Guide

X

X (AnswerBook)

Pascal Language Reference

X

X (AnswerBook)

Pascal Quick Reference Card

X

Incremental Link Editor (ild)

X

X (AnswerBook)

Numerical Computation Guide

X

X (AnswerBook)

Performance Profiling Tools

X

X (AnswerBook)

pascal [README file]

X (CD-ROM)

What Every Scientist Should Know About Floating-Point Arithmetic

X (AnswerBook and CD-ROM)


Previous Next Contents Index Doc Set Home