09.12.2012 Views

Basic Characteristics RAPID

Basic Characteristics RAPID

Basic Characteristics RAPID

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Simplified syntax<br />

Example:<br />

2.3 Formal syntax<br />

Introduction<br />

TPWrite String [\Num] | [\Bool] | [\Pos] | [\Orient]<br />

Instruction Compulsory Optional<br />

argument argument<br />

Mutually<br />

exclusive<br />

arguments<br />

- Optional arguments are enclosed in square brackets [ ]. These arguments can<br />

be omitted.<br />

- Arguments that are mutually exclusive, i.e. cannot exist in the instruction at the<br />

same time, are separated by a vertical bar |.<br />

- Arguments that can be repeated an arbitrary number of times are enclosed in<br />

braces { }.<br />

Example: TPWrite<br />

[String’:=’] <br />

[’\’Num’:=’ ] |<br />

[’\’Bool’:=’ ] |<br />

[’\’Pos’:=’ ] |<br />

[’\’Orient’:=’ ]’;’<br />

- The text within the square brackets [ ] may be omitted.<br />

- Arguments that are mutually exclusive, i.e. cannot exist in the instruction at the<br />

same time, are separated by a vertical bar |.<br />

- Arguments that can be repeated an arbitrary number of times are enclosed in<br />

braces { }.<br />

- Symbols that are written in order to obtain the correct syntax are enclosed in<br />

single quotation marks (apostrophes) ’ ’.<br />

- The data type of the argument (italics) and other characteristics are enclosed in<br />

angle brackets < >. See the description of the parameters of a routine for more<br />

detailed information.<br />

The basic elements of the language and certain instructions are written using a special<br />

syntax, EBNF. This is based on the same rules, but with some additions.<br />

Example: GOTO ’;’<br />

::= <br />

| <br />

::= { | | ’_’}<br />

- The symbol ::= means is defined as.<br />

- Text enclosed in angle brackets < > is defined in a separate line.<br />

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

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

Saved successfully!

Ooh no, something went wrong!