18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

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.

8. Plural keywords ending in S such as variables or lines, can be written in singular form as<br />

variable or line when called for by the grammar of a statement.<br />

C.2 Primitives<br />

Integer: Sequence of digits delimited by blanks, special characters, or an end of record.<br />

Name: Any sequence of letters and digits containing at least one letter and delimited by blanks,<br />

special characters, or an end of record.<br />

Special names: The syntax of special names is the same as name. However, each special name is<br />

required in the context specified.<br />

Each of the following names must be defined in the program preamble before use in other contexts:<br />

attribute name<br />

event name<br />

permanent entity name<br />

process name<br />

qualifier name<br />

resource name<br />

set name<br />

temporary entity name<br />

Routine name, while not necessarily defined in the preamble, must correspond to a user-defined<br />

routine.<br />

Word:{ integer<br />

| name<br />

| number<br />

| special character<br />

| string<br />

}<br />

Words must be separated from each other by one or more blanks unless one of them is a special<br />

character. Periods (.) are ignored between words and at the end of statements.<br />

Comments can be inserted between any two words in a program by enclosing them in quotation<br />

marks ('') formed by two consecutive apostrophes. The right-hand set of quotes is not necessary if<br />

the comment is the last item on the line.<br />

308

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

Saved successfully!

Ooh no, something went wrong!