Inspect Manual
Using Inspect With Pascal
Inspect Manual—429164-006
12-5
Data Locations
Data Locations
Here is the syntax you use to identify Pascal data locations in Inspect.
scope-path [ (instance) ]
specifies the scope path to the scope unit containing the data item.
(instance) identifies a specific activation of the data item's parent scope unit.
You need to specify an instance only when you want to identify a local data item in
a recursive scope unit.
#data-block
specifies the global data block containing a nonexported global variable. data-
block is the name of the module containing the global variable specified by data-
reference. The name of the data block for the main program is
_MAIN_MODULE, not the program name.
You need to specify a data block only when you have two nonexported global
variables of the same name in two different modules.
data-reference
specifies the data item using Pascal syntax. The recursion in the definition of
data-reference enables you to refer to complex Pascal data structures.
identifier
specifies a simple or pointer variable. When used in the DISPLAY command,
identifier can also be the name of a structured variable; identifier
then specifies the entire variable. When used in the INFO IDENTIFIER
command, identifier can also be the name of a structured variable or user-
defined data type; identifier then specifies the entire variable or the type
definition.
data-location:
[ scope-path [ (instance) ] . ] data-reference
[ #data-block. ]
instance:
[ + | - ] integer
data-reference: one of
identifier
data-reference '[' index [ ,index]... ']'
data-reference.identifier
data-reference^
index:
expression [ :expression ]