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 />

temporary entities<br />

Preamble statement marking the start of temporary entity declarations.<br />

the system [ may | can ]<br />

{ has { { a | an | the | some } attribute name<br />

[ ( { integer/integer | */integer | integer-integer } ) ]<br />

[ in { array | word } integer | function ]<br />

} < comma ><br />

| owns { { a | an | the | some } set } < comma ><br />

| has { a | an | the | some } attribute name<br />

random [ step | linear ] variable<br />

[ in { word | array } integer ]<br />

} < comma ><br />

Specifies attributes of the system and sets owned by the system. Also specifies optional attribute<br />

packing, equivalences, word assignments, and functions.<br />

[ then ] if - See if.<br />

trace [ using [ tape | unit ] expression ]<br />

Produces a backtrack of the current function and subroutine calls. Trace is executed automatically<br />

when <strong>SIMSCRIPT</strong> detects an error during execution. In this case, the standard listing device is<br />

used.<br />

upon - See event.<br />

329

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

Saved successfully!

Ooh no, something went wrong!