09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Basic</strong> Elements <strong>Basic</strong> <strong>Characteristics</strong> <strong>RAPID</strong><br />

1.2 Spaces and new-line characters<br />

The <strong>RAPID</strong> programming language is a free format language, meaning that spaces can<br />

be used anywhere except for in:<br />

- identifiers<br />

- reserved words<br />

- numerical values<br />

- placeholders.<br />

New-line, tab and form-feed characters can be used wherever a space can be used,<br />

except for within comments.<br />

Identifiers, reserved words and numeric values must be separated from one another by<br />

a space, a new-line, tab or form-feed character.<br />

Unnecessary spaces and new-line characters will automatically be deleted from a program<br />

loaded into the program memory. Consequently, programs loaded from diskette<br />

and then stored again might not be identical.<br />

1.3 Numeric values<br />

A numeric value can be expressed as<br />

- an integer, e.g. 3, -100, 3E2<br />

- a decimal number, e.g. 3.5, -0.345, -245E-2<br />

The value must be in the range specified by the ANSI IEEE 754-1985 standard (single<br />

precision) float format.<br />

1.4 Logical values<br />

1.5 String values<br />

A logical value can be expressed as TRUE or FALSE.<br />

A string value is a sequence of characters (ISO 8859-1) and control characters (non-<br />

ISO 8859-1 characters in the numeric code range 0-255). Character codes can be<br />

included, making it possible to include non-printable characters (binary data) in the<br />

string as well.<br />

Example: "This is a string"<br />

"This string ends with the BEL control character \07"<br />

If a backslash (which indicates character code) or double quote character is included,<br />

it must be written twice.<br />

Example: "This string contains a "" character"<br />

"This string contains a \\ character"<br />

5-4 <strong>RAPID</strong> Reference Manual

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!