HP 3000 Manuals

HP Pascal/XL Migration Guide : COPYRIGHT NOTICE [ HP Pascal/XL Migration Guide ] MPE/iX 5.0 Documentation


HP Pascal/XL Migration Guide

HP Pascal/XL Migration Guide 

Printed in U.S.A.

900 Series HP 3000 Computers
HP Part No.  31502-90004
Edition E1187
Printed Nov 1987

The information contained in this document is subject to change without
notice.

HEWLETT-PACKARD MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS
MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard
shall not be liable for errors contained herein or for incidental or
consequential damages in connection with the furnishing, performance or
use of this material.

Hewlett-Packard assumes no responsibility for the use or reliability of
its software on equipment that is not furnished by Hewlett-Packard.

This document contains proprietary information which is protected by
copyright.  All rights are reserved.  No part of this document may be
photocopied, reproduced or translated to another language without the
prior written consent of Hewlett-Packard Company.

Æ Copyright 1987 by HEWLETT-PACKARD COMPANY

Printing History 

New editions are complete revisions of the manual.  Update packages,
which are issued between editions, contain additional and replacement
pages to be merged into the manual by the customer.  The dates on the
title page change only when a new edition or a new update is published.
No information is incorporated into a reprinting unless it appears as a
prior update; the edition does not change when an update is incorporated.

The software code printed alongside the date indicates the version level
of the software product at the time the manual or update was issued.
Many product updates and fixes do not require manual changes and,
conversely, manual corrections may be done without accompanying product
changes.  Therefore, do not expect a one to one correspondence between
product updates and manual updates.

Preliminary First Edition | Jun 1987              | 31502A.01.03
First Edition             | Nov 1987              | 31502A.01.06

Preface 

This document describes how to convert Pascal/V programs into HP
Pascal/XL programs that run on MPE XL based systems.  It is written for
experienced Pascal programmers.

The purpose of this migration guide is to provide guidelines for anyone
planning to migrate a Pascal/V program from an MPE V system to an HP
Pascal/XL program on an MPE XL system.  As there is no migration utility
available, this document describes each feature that must be changed
manually.

For a complete description of HP Pascal/XL, refer to the HP Pascal
Reference Manual.

This guide is organized as follows:

Chapter 1        Explains the differences between Pascal/V and HP
                 Pascal/XL.

Chapter 2        Gives the details of migrating source from Pascal/V to
                 HP Pascal/XL.

Chapter 3        Describes the file and data format migration.

Chapter 4        Provides examples of program and data file conversions.

Appendix A       Gives a "cookbook" style checklist for converting
                 programs from Pascal/V to HP Pascal/XL. This checklist
                 can serve as a migration guideline.


NOTE Refer to the HP Pascal Reference Manual for a description of any error messages that may be generated during the migration process.
The following manuals provide additional information that will help you migrate Pascal/V programs to HP Pascal/XL: * MPE Intrinsics Reference Manual (30000-90010) * Migration Overview (30367-90001) * General User Skills Migration Guide (30367-90002) * Programmer's Skill Migration Guide (30367-90005) * HP Pascal Reference Manual (31502-90001) * HP Pascal Programmer's Guide (31502-90002) * Pascal/3000 Reference Manual (32106-90001) * Switch Programming (32650-90014) * Data Types Conversion (32650-90015) Syntax Conventions Notation | Description UPPERCASE | Represents keywords, which must be spelled | exactly as shown (case is not important, | however). italics | Represents substitutable parameters, | explained below the syntax description. nonitalics | Words in syntax statements that are not in | italics must be entered exactly as shown. | Punctuation characters other than brackets, | braces, and ellipses must also be entered | exactly as shown. For example: | | EXIT; [ ] | Specifies that an element inside brackets | is optional. Several elements stacked | inside brackets means the user can select | any one or none of these elements. For | example: | You can select A or B or neither. [ A] | [ B] | | When brackets are nested, parameters in | inner brackets can be specified only if | parameters in outer brackets or comma place | holders are specified. For example: | [parm1[,parm2[,parm3]]] can be entered as: | | parm1,parm2,parm3 or parm1,,parm3 etc. Notation | Description { } | When several elements are stacked within | braces in a syntax statement, you must | select one of those elements. For example: | | {A} | {B} You must select A or B or C. | {C} Notation | Description ... | A horizontal ellipsis in a syntax statement | indicates that a previous element can be | repeated. For example: | [,itemname]... | A horizontal ellipsis in an example | indicates that a portion of the example has | been omitted. For example: | | IF x < 0 THEN ... : | A vertical ellipsis in an example indicates | that a portion of the example has been | omitted. For example: | | BEGIN | : | END; Notation | Description , | A shaded delimiter preceding a parameter in | a syntax statement indicates that the | delimiter must be supplied whenever (a) | that parameter is included or (b) that | parameter is omitted and any other | parameter that follows is included. For | example: | itema["~~,"itemb][,itemc] | means that the following are allowed: | | itema | itema, itemb | itema,itemb,itemc | itema,,itemc [n1,n2] | If x is in this range, then n1 <=x <=n2. [n1,n2) | If x is in this range, then n1 <=x <n2. (n1,n2] | If x is in this range, then n1 <x <=n2. (n1,n2) | If x is in this range, then n1 <x <n2. : | The colon is the operating system prompt. | This manual shows this prompt before any | command that is to be executed from the | operating system. The programmer need not | type this prompt except when including the | command in a job stream. expr | A parameter name that contains expr denotes | an expression. For example: | num_expr is a numeric expression. lit | A parameter name that contains lit denotes | a literal parameter. For example: | str_lit is a string literal. num | A parameter name that contains num denotes | a numeric parameter. For example: | num_var is a numeric variable. str | A parameter name that contains str denotes | a string parameter. For example: | str-expr is a string expression. var | A parameter name that contains var denotes | a variable. For example: | str_var is a string variable. General Conventions Notation | Description italics | Are used within text to represent terms | being defined for the first time, | substitutable parameters, and identifier | names (including the names of predefined | constants, functions, and procedures). underlining | When necessary for clarity in an example, | user input may be underlined. For example: | | NEW NAME? ALPHA | In addition, brackets, braces, or ellipses | appearing in syntax or format statements | that must be entered as shown are | underlined. For example: | LET var[[subscript]] = value [[ ]] | Represents a key on the terminal keyboard. | For example, [[RETURN]] indicates the | carriage return key. [[CONTROL]]char | Represents a control character. For | example, [[CONTROL]]Y means that you press | the control key and the character Y | simultaneously.


MPE/iX 5.0 Documentation