Compaq AA-PWCBD-TE Manuel d'utilisateur Page 73

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 152
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 72
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
Vue de la page 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 151 152

Commentaires sur ces manuels

Pas de commentaire