Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home

HP Pascal/HP-UX Reference Manual

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

HP Part Number: 92431-90013

Published: August 1992


Table of Contents

About This Manual
Printing History
Preface
Conventions
1 Introduction
Introduction
Extensions to ANSI/IEEE and ISO Pascal
Type Compatibility
2 Language Elements
Introduction
Basic Symbols
Reserved Words
Identifiers
Scope
Numbers
Integer Literals
Real and Longreal Literals
Comments
Separators
String Literals
3 Data Types
Introduction
Simple Types
Ordinal
Real
Longreal
Structured Types
ARRAY
Array Declarations
Multi-Dimensioned Arrays
FILE
Standard Textfiles
Record
Field List
Fixed Part
Variant Part
Set
PACKED
String
Pointer Types
Pointers
Type Compatibility
Identical Types
Compatible Types
Incompatible Types
Assignment Compatibility
String Assignment Compatibility
4 Expressions
Introduction
Operands
Operators
Operator Precedence
Arithmetic Operators
Implicit Type Conversion of Operands
DIV
MOD
Boolean Operators
AND
NOT
OR
Relational Operators
Simple Relational Operators
Set Relational Operators
Pointer Relational Operators
String Relational Operators
Concatenation Operator
SET Operators
Array Selector
Record Selector
Set Constructor
File Buffer Selector
Pointer dereferencing
Function Calls
5 The Declaration Section
Introduction
Constant Definition
CONST
false
true
maxint
minint
NIL
Array Constants and Array Constructors
Record Constructor
Restricted Set Constructor
String Constructor
Label Declaration
Type Definition
TYPE
Variable Declaration
Global Variables
Local Variables
Module Variables
VAR
Side-Effects
6 Statements
Introduction
Compound Statements
BEGIN .. END
Empty Statements
Assignment
CASE
IF .. THEN
IF .. THEN .. ELSE
FOR .. DO
REPEAT .. UNTIL
WHILE .. DO
WITH .. DO
GOTO
Procedures
7 Program Structure
Introduction
Program Heading
Block
Declaration Part
PROCEDURE
FUNCTION
MODULE
EXPORT
IMPORT
IMPLEMENT
8 Procedures and Functions
Introduction
Conformance
Directives
FORWARD Directive
Recursion
Function Calls
9 Standard Routines
Introduction
Procedures for Allocation and Deallocation
new
dispose
mark
release
String Procedures
setstrlen
strappend
strdelete
strinsert
strmove
strread
strwrite
String Functions
str
strlen
strltrim
strmax
strpos
strrpt
strrtrim
Transfer Procedures
pack
unpack
Program Control Procedures
halt
assert
MPE V Migration Routines
baddress
cmpbytes
movebyteswhile
scanuntil
scanwhile
waddress
Arithmetic Functions
abs
arctan
cos
exp
ln
sin
sqr
sqrt
Predicate Functions
odd
Numeric Conversion Functions
binary
hex
octal
Transfer Functions
round
trunc
Ordinal Functions
chr
ord
pred
succ
10 Input and Output
Introduction
I/O Standard Procedures and Functions
append
associate
close
disassociate
eof
eoln
get
lastpos
linepos
maxpos
open
overprint
page
position
prompt
put
read
readdir
readln
reset
rewrite
seek
write
Formatting of Output to Textfiles
writedir
writeln
11 System Programming Extensions
Introduction
ISO
HP_PASCAL
HP_MODCAL
EXT_MODCAL
Language Elements
Reserved Words
Predefined Identifiers
Data Types
Structured Types
Pointer Types
PROCEDURE and FUNCTION Types
Expressions
Type Coercion
Declaration Section
Constant Definition
Statements
TRY-RECOVER
Procedures and Functions
Formal Parameters
Routine Options
Predefined Routines
Addressing and Pointers
Move Routines
Error Handling Routines
Parameter Mechanisms
Routine Mechanisms
Size Functions
12 Compiler Options
Introduction
System-Independent Options
HP Standard Options
HP Pascal Options
System Programming Options
System-Dependent Options
MPE/iX Options
HP-UX Options
Options That Work Differently on HP-UX and MPE/iX
System-wide File
Compiler Option Description
ALIAS
ALIGNMENT
ANSI
ARG_RELOCATION
ASSERT_HALT
ASSUME
BUILDINT
CALL_PRIVILEGE and EXEC_PRIVILEGE
CHECK_ACTUAL_PARM
CHECK_FORMAL_PARM
CODE
CODE_OFFSETS
CONVERT_MPE_NAMES
COPYRIGHT
COPYRIGHT_DATE
ELSE
ENDIF
EXTERNAL
EXTNADDR
FONT
GLOBAL
GPROF
HEAP_COMPACT
HEAP_DISPOSE
HP_DESTINATION
HP3000_16
HP3000_32
IF
INCLUDE
INCLUDE_SEARCH
INLINE
INTR_NAME
KEEPASMB
LINES
LIST
LIST_CODE
LISTINTR
LITERAL_ALIAS
LOCALITY
LONG_CALLS
MAPINFO
MLIBRARY
NLS_SOURCE
NOTES
OPTIMIZE
OS
OVFLCHECK
PAGE
PAGEWIDTH
PARTIAL_EVAL
POP
PUSH
RANGE
RLFILE
RLINIT
S300_EXTNAMES
SEARCH
SET
SHLIB_CODE
SHLIB_VERSION
SKIP_TEXT
SPLINTR
STANDARD_LEVEL
STATEMENT_NUMBER
STDPASCAL_WARN
STRINGTEMPLIMIT
SUBPROGRAM
SYMDEBUG
SYSINTR
SYSPROG
TABLES
TITLE
TYPE_COERCION
UPPERCASE
VERSION
VOLATILE
WARN
WIDTH
XREF
A Error Messages
Reading Error Messages
Finding Undetected Errors
Using This Appendix
pc Driver Messages
Compiler Messages
B ASCII Character Codes
Introduction
C Compiler Limits and Values
WHO AM I?
Glossary
Index

List of Figures

Example Diagram
2-1 Identifier
2-2 Unsigned Integer:
2-3 Signed Integer:
2-4 Unsigned Real:
2-5 Signed Real:
2-6 Comment
2-7 String_literal:
3-1 Type:
3-2  HP Pascal Data Types
3-3 Simple_type:
3-4 Ordinal_type:
3-5 Enumerated_id_list
3-6 Subrange_type:
3-7 Structured_type:
3-8 Unp_Struc_type:
3-9 Array_type:
3-10 File_type:
3-11 Record_type:
3-12 Field_list:
3-13 Fixed_part:
3-14 Variant_part:
3-15 Set_type:
3-16 Packing
3-17 String_type:
3-18 Pointer_type:
4-1 Expression
4-2 Selector:
4-3 Array_selector:
4-4 Record_selector:
4-5 Set_constructor:
4-6 File_selector:
4-7 Pointer_deref:
5-1 Const_decl:
5-2 Array_constructor
5-3 Record_constructor:
5-4 Restricted_set_constructor:
5-5 String_constructor:
5-6 Label_decl:
5-7 Type_decl:
5-8 Variable_decl:
6-1 Statements:
6-2 Begin/End
6-3 Assignment_statement
6-4 Case_statement:
6-5 If_statement:
6-6 For_statement:
6-7 Repeat_statement:
6-8 While_statement:
6-9 With_statement:
6-10 Goto_statement:
6-11 Procedure_statement:
7-1 Compilation_unit:
7-2 Program_heading:
7-3 block:
7-4 Procedure_declaration:
7-5 Function_declaration:
7-6 Module_declaration:
7-7 Export_declaration:
7-8 Import_declaration:
8-1 Formal_parameter_list:
8-2 Conf_Array_Schema:
8-3 Conf_Array:
11-1 Relationship of STANDARD_LEVEL Compiler Option Parameters
11-2 Extended Data Types
11-3 Layout of a Record
11-4 Layout of a Crunched Record
11-5 Pointer Class Relationship
11-6 Expression:
11-7 Copying Order for move_l_to_r
11-8 Copying Order for move_r_to_l
12-1 Relationship Between HP Pascal and ANSI Standard Pascal
12-2 Categories of System-Dependent Compiler Options
12-3 Relationships Between ASSUME Compiler Option Parameters
12-4 Relationships Between STANDARD_LEVEL Compiler Option Parameters

List of Examples

2-1 Example
2-2 Example
2-3 Example
2-4 Example
2-5 Example
2-6 Example
2-7 Example
3-1 Example
3-2 Example
3-3 Example
3-4 Example
3-5 Example
3-6 Example
3-7 Example
3-8 Example
3-9 Example
3-10 Example
3-11 Example
3-12 Example
3-13 Example
3-14 Example
3-15 Example
3-16 Example
3-17 Example
3-18 Example
3-19 Example
3-20 Example
3-21 Example
3-22 Example
4-1 Example
4-2 Example
4-3 Example
4-4 Example
4-5 Example
4-6 Example
4-7 Example
4-8 Example
4-9 Example
4-10 Example
4-11 Example
4-12 Example
4-13 Example
4-14 Example
4-15 Example
4-16 Example
4-17 Example
4-18 Example 1
4-19 Example 2
4-20 Example
4-21 Example
4-22 Example
5-1 Example
5-2 Example
5-3 Example
5-4 Example
5-5 Example
5-6 Example
5-7 Example
5-8 Example
5-9 Example
5-10 Example
5-11 Example
5-12 Example
5-13 Example
5-14 Example
6-1 Example
6-2 Example
6-3 Example
6-4 Example
6-5 Example
6-6 Example
6-7 Example
6-8 Example
6-9 Example
6-10 Example
6-11 Example
6-12 Example
7-1 Example
7-2 Example
7-3 Example
7-4 Example
7-5 Example 1
7-6 Example 2
7-7 Example
8-1 Example
8-2 Example
8-3 Example
8-4 Example
8-5 Example
8-6 Example
9-1 Example
9-2 Example
9-3 Example
9-4 Example
9-5 Example
9-6 Example
9-7 Example
9-8 Example
9-9 Example
9-10 Example
9-11 Example
9-12 Example
9-13 Example
9-14 Example
9-15 Example
9-16 Example
9-17 Example
9-18 Example
9-19 Example
9-20 Example
9-21 Example
9-22 Example
9-23 Example
9-24 Example
9-25 Example
9-26 Example
9-27 Example
9-28 Example
9-29 Example
9-30 Example
9-31 Example
9-32 Example
9-33 Example
9-34 Example
9-35 Example
9-36 Example
9-37 Example
9-38 Example
9-39 Example
9-40 Example
9-41 Example
9-42 Example
9-43 Example
9-44 Example
9-45 Example
9-46 Example
10-1 Example
10-2 Example
10-3 Example
10-4 Example
10-5 Example
10-6 Example
10-7 Example
10-8 Example
10-9 Example
10-10 Example
10-11 Example
10-12 Examples
10-13 Example
10-14 Example
10-15 Example
10-16 Example
10-17 Example
10-18 Example
10-19 Example
10-20 Example
10-21 Example
10-22 Example
10-23 Example
10-24 Example
10-25 Example
10-26 Example
11-1 Example
11-2 Example
11-3 Example
11-4 Example
11-5 Example
11-6 Example
11-7 Example
11-8 Example
11-9 Example
11-10 Example
11-11 Example
11-12 Example
11-13 Example
11-14 Example
11-15 Example
11-16 Example
11-17 Example
11-18 Example
11-19 Example
11-20 Example
11-21 Example
11-22 Example
11-23 Example
11-24 Example
11-25 Example
11-26 Example
11-27 Example
11-28 Example
11-29 Example
11-30 Example
11-31 Example
11-32 Example
11-33 Example
11-34 Example
11-35 Example
11-36 Example
11-37 Example
11-38 Example
11-39 Example
12-1 Example
12-2 Example 1
12-3 Example 2
12-4 Example 3
12-5 Example
12-6 Example
12-7 Example
12-8 Example
12-9 Example 1
12-10 Example 2
12-11 Example
12-12 Example
12-13 Example
12-14 Example
12-15 Example
12-16 Example
12-17 Example
12-18 Example
12-19 Example
12-20 Example 1
12-21 Example 2
12-22 Example
12-23 Example
12-24 Example
12-25 Example
12-26 Example
12-27 Example
12-28 Example
12-29 Examples
12-30 Examples
12-31 Example
12-32 Example
12-33 Example 1
12-34 Example 2
12-35 Example 3
12-36 Example 4
12-37 Example 1
12-38 Example 2
12-39 MPE/iX Example
12-40 HP-UX Example
12-41 Example
12-42 Example
12-43 Example
12-44 Example
12-45 Example
12-46 Example
12-47 Example
12-48 Example
12-49 Example
12-50 Example
12-51 Example
12-52 Example
12-53 Example
12-54 Example
12-55 Example
12-56 Example
12-57 Example
12-58 Example
12-59 Example
12-60 Example
12-61 Example
12-62 Examples
12-63 Example
12-64 Example
12-65 Example
12-66 Example
12-67 Example 1
12-68 Example 2
12-69 Example
12-70 Example
12-71 Example
12-72 Example
12-73 Example
12-74 Example
12-75 Example
12-76 Examples
12-77 Example
12-78 Example
12-79 Example
12-80 Example
12-81 Example
12-82 Example
12-83 Example
12-84 Example
12-85 Example
12-86 Example
12-87 Example
12-88 Example
12-89 Example
12-90 Example
A-1 Example
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1992 Hewlett-Packard Development Company, L.P.