Lexical Elements of the DEC Text Processing Utility Language
4.6 Constants
Example 4–2 (Cont.) Global and Local Constant Declarations
PROCEDURE user_hello_world
CONSTANT
world := "world";
MESSAGE (user_hello + " " + world); ! Display "Hello world"
! in message area
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 Symbol Description
Arithmetic + Addition, unary plus
– Subtraction, unary minus
* Multiplication
/ Division
String + String concatenation
- String reduction
* String replication
Relational <> Not equal to
= Equal to
< Less than
<= Less than or equal to
> Greater than
>= Greater than or equal to
Pattern | Pattern alternation
@ Partial pattern assignment
(continued on next page)
Lexical Elements of the DEC Text Processing Utility Language 4–7