HPlogo HP/DDE Debugger User's Guide: HP 9000 Series 700/800 Computers > Appendix B Language Managers

HP Pascal Language Manager

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Type Name

lang_pas_hp

Title

HP Pascal

Description

In general, this manager supports a subset of the Pascal expressions and declarations described in the HP Pascal reference manual for your system, plus the debugger extensions listed under "Syntax."

Syntax

  • declaration

    A declaration of a type or variable, restricted to the following syntax:

    • type identifier[, identifier]... = type_reference

    • var identifier[, identifier]... : type_reference

      type_reference  [location\]identifier
      shortint
      integer
      longint
      bit16
      bit32
      bit52
      bit64
      real
      single
      double
      longreal
      boolean
      char
      string
      globalanyptr
      ^type_reference
      array [bound..bound, ...] of type_reference
      set of type_reference
      typeof([location\]identifier)
  • expression

    A Pascal expression constructed from the comments, operators, identifiers, literals, predeclared functions, type cast, and extensions listed in this section.

    Comments

    { comment }
    (* comment *) "comment"

    Operators

    Arithmetic

    +, -, *, /, div, mod

    Relational

    =, <>, <, >, <=, >=, in

    Boolean

    and, or, not

    Set

    +, *, -

    Assignment

    :=

    Array indexing

    [ , ]

    Field selection

    .

    Dereference

    ^

    Set construction

    []

    Grouping

    ( )

    Identifiers

    Identifiers are case-insensitive and must start with a letter (ISO Latin-1 decimal values 65-90 and 97-122); any additional characters can be letters, digits (0-9), or underscore (_).

    Literals

    Integer

    digits (decimal)

    Real

    digits.digits

    digits[.digits]E[+|-]digits

    For example, 5.48E-11 is a valid real number.

    Character

    'character'

    String

    'characters'

    Boolean

    TRUE FALSE

    Pointer

    NIL

    Predeclared Functions

    abs
    addr
    ord
    round
    sizeof

    Type Cast

    type_name(expression)

    Debugger Extensions

    location\identifierName identifier visible from the scope location
    `va(address) Virtual address address
    `long(expression) Cast the resulting value of expression to type integer
    `longlong(expr) Cast the resulting value of expression to type longint
    `short(expression) Cast the resulting value of expression to type shortint
    ^type_name(expr)Cast the resulting value of expr to type
    ^type_name
    typeof(identifier) The type of identifier; can be used to refer to
    anonymous types
    Array slices In place of an array subscript, you
    can give a range of elements:
     * Lower bound to upper bound
     expression..expressionGiven range
     *..expressionLower bound to given expression
     expression..*Given expression to
    upper bound
     Example: print table [*, 100..110]

  • language_type

    {lang_pas_hp|lang_pas|pascal|pc|hppas|hppascal}

  • manager_option

    None.

Startup File

None.

Related Managers

None.