Compaq AA-PWCBD-TE Computer Accessories User Manual


 
Lexical Elements of the DEC Text Processing Utility Language
4.9 Reserved Words
If this code is included in TEMP.TPU, the following command demonstrates the
scope of the various local variables:
$
EDIT/TPU/NOSECTION/NOINITIALIZE/NODISPLAY/COMMAND=temp.tpu
Starting or ending the unbound, non-init code
Starting or ending the module init code
Within procedure bat, within module mmm
Starting or ending the module init code
Within procedure bat, within module mmm
In procedure bar, which is outside all modules
Starting or ending the unbound, non-init code
4.9.5.3 CONSTANT
With the CONSTANT declaration, you can associate a name with certain constant
expressions. The constant expression must evaluate at compile time to a keyword,
a string, an integer, or an unspecified constant value. The maximum length of
a string constant allowed in a constant declaration is about 4000 characters in
length. DECTPU sets up some predefined global constants. See Section 4.9.3 for
a list of predefined constants.
Constants can be either globally or locally defined. Global constants are constants
declared outside procedure declarations. Once a global constant has been defined,
it is set for the life of the DECTPU session. An attempt to redefine a constant
will succeed only if the constant value is the same.
Local constants are constants declared within a procedure. You must specify a
local CONSTANT declaration after the PROCEDURE statement and before any
ON_ERROR statement. You can intermix LOCAL statements and CONSTANT
statements.
Syntax
CONSTANT constant-name := compile-time-constant-expression [[,...]];
4.9.5.4 VARIABLE
With the VARIABLE declaration, you can identify certain variables as global
variables. Any symbols that are neither declared nor used as the target of an
assignment statement before being referenced by DECTPU are assumed to
be undefined procedures. You must use the VARIABLE declaration outside a
procedure declaration. Initialize global variables to the data type unspecified.
Syntax
VARIABLE variable-name [[,...]];
4.10 Lexical Keywords
The next two sections explain the DECTPU lexical keywords and how to use
them for the following:
Conditional compiling
Specifying the radix of numeric constants
4–32 Lexical Elements of the DEC Text Processing Utility Language