HP DDL D40 Reference Manual page 195

Data definition language
Table of Contents

Advertisement

SPI Tokens
The following shows the data structures DDL generates for token types in each
language:
Language
C
COBOL
Pascal
TACL
pTAL or TAL
DDL replaces any hyphen in a DDL name with a circumflex (^) in a TAL LITERAL
name or in a TACL STRUCT name, and with an underscore (_) in a C #define
name or in a Pascal defined constant name.
Standard SPI TOKEN-TYPE Definitions. The following guidelines apply to the
standard SPI token types:
SPI defines a set of standard token types. The names of standard SPI token types
have the following format:
Zsss-TYP-name
In this format, the letter Z indicates that the token type is defined by HP, sss is a
subsystem name or is SPI for a standard SPI name, and name identifies the
token type.
The file ZSPIDEF.ZSPIDDL on the disk volume chosen for your system contains
the DDL definitions of the standard SPI token types. To use the standard SPI
definitions, compile this file into your dictionary, using the DDL SOURCE
command. For a complete description of the standard SPI token types, see the SPI
Programming Manual and the SPI Common Extensions Manual.
You can use the standard token types where applicable, or you can define your
own token types. When you define a token type specifically for your own
subsystem, do not begin its name with the letter Z; this ensures that your token-
type name will not be the same as a current or future name supplied by HP.
TOKEN-TYPE Statement Examples
The following example shows the standard SPI token-type definition for simple tokens
that contain 16-bit integer values:
TOKEN-TYPE zspi-typ-int
VALUE IS zspi-tdt-int
DEF IS zspi-ddl-int.
Data Definition Language (DDL) Reference Manual—426798-002
Data Structure
#define TYPE_NAME value
01 type-name NATIVE-2 VALUE IS value
CONST type-name = value
? Section type^name Struct
BEGIN
INT value
END;
Literal type^name = value
Token name
Token data-type
Token definition
VST701.vsd
7 -5
TOKEN-TYPE Statement

Advertisement

Table of Contents
loading

Table of Contents