— defined for integers, reals, strings, and symbols.
An integer is any group of digits defining a number between -2e+31 and 2e+31 - 1. It cannot contain a decimal point or an exponent. Integers have several different literal notations, but regardless of notation, all integers are 32 bit signed numbers. They are flagged internally with their respective notations and Gamma attempts to maintain and return the notation when the integer is printed.
A real number is any group of digits defining a number less than -2e+31, greater than 2e+31 - 1, or containing a non-zero mantissa. It can contain a decimal point, and it may end with the letter e followed by a signed exponent.
A string may have any number of characters. The special forms \n, \t, \f and \r denote newline, tab, form feed, and carriage return respectively. The double quote (") and backslash (\) characters may be embedded in a string by preceding them with a backslash.
Generally, symbol names are made up of alpha-numeric characters and underscores.
Table 7. Symbols
Notation | Description | Example |
---|---|---|
[a-z,A-Z,0-9] | One or more characters chosen from : a-z, A-Z, 0-9 are valid for symbol names. | Epax15 |
_ | A _ (underscore) is allowed in any part of a symbol name. This symbol is generally used to separate words in a symbol name. The use of this character at the beginning and end of a symbol is reserved for system use. | my_var_name |
\ | Any non-alphanumeric character other than _ must be preceded by a backslash to be used in a symbol name. | Ft\+\$sq |
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.