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

define { name } < comma > as [ a | an ]<br />

[ [ integer | real | double | alpha | text | signed integer ]<br />

[ integer - { dim | dimensional } ]<br />

[ dummy | subprogram | stream { name | integer } ]<br />

] < [ comma ] ><br />

{ variable | array}}<br />

[ monitored on { [ the ] { left | right } } < comma > ]<br />

Defines the properties of global variables.<br />

define { name } < comma > as [ a | an ]<br />

[ [ integer | real | double | alpha | text ]<br />

[ integer - { dim | dimensional } ]<br />

[ subprogram ]<br />

[ saved | recursive ]<br />

] < [ comma ] ><br />

{ variable | array }<br />

Defines the properties of local variables.<br />

define word to mean { word } < ><br />

Instructs the compiler to substitute the words following the keyword mean for the indicated word<br />

in all subsequent statements, before they are compiled. The sequence of words to be substituted is<br />

terminated by the first end of record following mean. The sequence of words in a define to<br />

mean statement cannot be empty.<br />

destroy{ [ the | this ] { temporary entity name | process name<br />

| event name } [ called variable ]<br />

| each { permanent entity name | resource name } }<br />

Releases the block of storage for the specified entity name.<br />

317

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

Saved successfully!

Ooh no, something went wrong!