Operators; Dectpu Operators - Compaq DEC Text Processing Utility (DECTPU) Guide Manual

Guide to the dec text processing utility
Table of Contents

Advertisement

Lexical Elements of the DEC Text Processing Utility Language
Example 4–2 (Cont.) Global and Local Constant Declarations
PROCEDURE user_hello_world
CONSTANT
world := "world";
MESSAGE (user_hello + " " + world);
ENDPROCEDURE;

4.7 Operators

DECTPU uses symbols and characters as language operators. There are five
types of operators:
Arithmetic
String
Relational
Pattern
Logical
Table 4–5 lists the symbols and language elements that DECTPU uses as
operators.
Table 4–5 DECTPU Operators
Type
Arithmetic
String
Relational
Pattern
! Display "Hello world"
! in message area
Symbol
Description
+
Addition, unary plus
Subtraction, unary minus
*
Multiplication
/
Division
+
String concatenation
-
String reduction
*
String replication
<>
Not equal to
=
Equal to
<
Less than
<=
Less than or equal to
>
Greater than
>=
Greater than or equal to
|
Pattern alternation
@
Partial pattern assignment
Lexical Elements of the DEC Text Processing Utility Language 4–7
4.6 Constants
(continued on next page)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dec text processing utilityDectpu

Table of Contents