Chapter 7
RAPID!
RAPID! syntax
268
4460 GSM System Option and 4468 EDGE System Option
Version 12.20
Basic rules
The RAPID! program interpreter is not case-sensitive. This means that commands
as well as constants and variables may be written in both uppercase and lower-
case notation.
RAPID! commands and reserved words like
GET
or
GOTO
are not permitted as line
labels or as names for constants and variables.
RAPID! commands, names of constants and variables as well as numeric values
must not
include blanks (spaces).
Syntax check
The syntax check is performed by the built-in interpreter.
In other words, after the start of a program, every single line is interpreted one
by one and the corresponding action is initiated.
If the built-in interpreter comes across a command in a program line that it can’t
understand, then this is regarded a syntax error.
The interpreter always checks a program after it was started. A detected syntax
error causes the program to be aborted and leads to an error message indicating
the erroneous program line.
Notation
To explain the language syntax, the following notation is used:
[item]
Square brackets indicate an optional item, which can also be omitted.
Example:
[sign] number
is a number with an op or – sign.
item | item
Vertical bars separate entries of a list and indicate that precisely one
element must be used.
Example:
The following list contains the four seasons
spring |
summer | fall | winter
. One of these entries gives the current
season.
{item}
Brackets enclose an item or a list of items, which can be repeated several
times.
Example:
{ A...Z }
is the notation for text.
item1 := item2
The colon followed by the equality symbol gives the definition of an item.
Example:
binary digit := 0 | 1
defines the digits of a dual
number system in a way that a ‘binary digit’ can either be ‘0’ or ‘1’.
NOTE
Most of the syntax errors are simple misspellings of commands or typing
errors.