Multitech MT5634HD16 Uživatelská příručka Strana 162

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 292
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 161
RASExpress User Guide
152 CommPlete Communications Server
c The argument is a character. If the corresponding argument is an integer the value
of the argument modulo 256 is taken and copied; if the argument is real it is
ignored and 0 is copied; if the argument is a string the first character of the string
is copied.
% A % is copied to the output stream. If the character following % is not %, the % as
well as the following character are copied to the output stream.
Script Language Execution Notes
Execution starts at the PROC main. PROC main cannot have any arguments. All
variables must be declared before they are used. All procedures must be declared
before they are called. Recursion is allowed in procedures.
To define mutually recursive procedures, use the FORWARD directive to indicate
that the procedure body is defined later in the source file. Procedures defined with
the FORWARD directive should have all the parameters and return value (if any)
specified; the actual definition of the procedure body should not contain the formal
parameter list or the return value. Example of forward-defined procedures:
Example
proc a(integer x, y) : integer;
forward;
proc b(integer u, v) : integer;
forward;
proc a;
integer t;
/* Some more code here. */
t = b(x, y);
/* Some more code here. */
return(t);
endproc
proc b;
return(a(u, v));
endproc
Operator Precedence
Operators are listed in the order of precedence :
Unary Operators : - ! (unary minus, logical negation)
Binary Operators : * / + - < > <= >= == != && ||
All operators are left-associative. Expressions are evaluated completely, so care must
be taken when writing expressions. For example, an expression like
(a != 0 && b / a) would create a run-time error.
Creating, Compiling, and Executing a Script File
This section provides the basic information necessary to create, compile, and execute
(run) a script file for RASExpress.
Creating a Script File
A script file can be created using a text editor or a screen snapshot that contains
RASExpress script language commands. This file is the source code and should be
saved with a .SCR extension.
Zobrazit stránku 161
1 2 ... 157 158 159 160 161 162 163 164 165 166 167 ... 291 292

Komentáře k této Příručce

Žádné komentáře