Batch Mode Simulation : The Simulation Control Program : Basic Syntax Rules

Basic Syntax Rules

The basic syntax of the Simulation Control Language is presented as follows:

An identifier may be any string, beginning with a letter and consisting of any of the following characters: a-z, 0 -9, _. Identifiers have a maximum length of 16 characters.

When a Rational Statemate element name coincides with an SCL reserved word or an SCL variable/constant identifier, an underscore is added as a prefix to the Rational Statemate element name. For example, your specification contains a state SET. However, set is also a reserved word in the SCL. To reference this name in the Simulation Control Program, precede it with an underscore (i.e., _SET).
It is illegal for a Rational Statemate element name to be the same as a reserved word in the Rational Statemate action language (i.e., WHILE). Multiple SCL statements are permitted on the same line if they are separated by semicolons (;).
Comments are preceded by a double backslash (//). This symbol can appear at any point in the line, except within a literal string. The end of the line concludes the comment.