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.

Appendix C. <strong>SIMSCRIPT</strong> Reference Syntax<br />

last column { is | = } integer<br />

Directs compiler to ignore columns beyond integer on subsequent input records.<br />

leave<br />

Transfers control to the statement immediately following the next loop statement.<br />

let variable = expression<br />

Assigns the value of expression to the variable variable. If variable is integer and expression is real,<br />

the result is rounded before storing.<br />

list { expression<br />

| attributes of { entity [ called expression ]<br />

| each entity<br />

[ { from | after } expression ]<br />

[ { in | of | at | on } set name [subscript ] ]<br />

[ in reverse order ]<br />

[ , { selection clause | termination clause } < > ]<br />

}<br />

} < comma ><br />

A free-form output statement that labels and displays values of expressions, and one- or two-dimensional<br />

attributes or arrays.<br />

{ loop[ | repeat }<br />

Used with do to delimit a group of statements controlled by one or more logical control phrases.<br />

321

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

Saved successfully!

Ooh no, something went wrong!