Compaq AA-PWCBD-TE Manual de usuario Pagina 73

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 152
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 151 152

Comentarios a estos manuales

Sin comentarios