Реферат: Networking Principles Essay Research Paper DialUp Scripting
- Unary minus
! One’s complement
The binary operators are listed in the following table in their order of precedence. Operators with higher precedence are listed first:
Operators Type of Operation Type Restrictions
* / Multiplicative Integers
+ – Additive integers Strings (+ only)
* * *= *= Relational Integers
== != Equality Integers, strings, booleans
and Logical AND Booleans
or Logical OR Booleans
Examples:
count = 3 + 5 * 40
transmit “Hello” + ” there”
delay 24 / (7 – 1)
6.0 Comments
All text on a line following a semicolon is ignored.
Examples:
; this is a comment
transmit “hello” ; transmit the string “hello”
7.0 Keywords
Keywords specify the structure of the script. Unlike commands, they do not perform an action. The keywords are listed below.
proc name
Indicates the beginning of a procedure. All scripts must have a main procedure (proc main). Script execution starts at the main procedure and terminates at the end of the main procedure.
endproc
Indicates the end of a procedure. When the script is executed to the endproc statement for the main procedure, Dial-Up Networking will start PPP or SLIP.
integer name [ = value ]
Declares a variable of type integer. You can use any numerical expression or variable to initialize the variable.
string name [ = value ]
Declares a variable of type string. You can use any string literal or variable to initialize the variable.