An identifier is a sequence of characters that are alphabetic, numeric, an underscore ("_"), an apostrophe ("'"), or a caret ("^"). It must begin with a letter. Upper or lower case alphabetic characters may be used, and ISETL is case-sensitive. (i.e. MID_POINT, Mid_Point, and mid_point are legal and are different.)
Examples:
|
Length length LENGTH is_associative remainder y y' y'' y2 X37 |
valid identifiers |
|
is associative y" 2y |
not valid: space not allowed in identifier not valid: prime prime (apostrophe apostrophe)is OK, but not double quote not valid: doesn't begin with an alphabetic character |
An identifier serves as a variable and can take on a value of any ISETL data type. The type of a variable is entirely determined by the value that is assigned to it and changes when a value of a different type is assigned.