File and directory path names.
/ A normal absolute path name.
~/ A path name relative to the home directory of the owner of the control program.
~username/ A path name relative to the home directory of the named user.
"$VARIABLE/" A path name who's initial components are taken from the specified environment variable. Note that since the script language also uses $ to evaluate internal variables and functions, if you use this form of pathname, you must enclose the pathname in quotes to prevent the language from seeing the $.
Set datatypes.
all
keyword,
which denotes the set of all the other members.
a + b This adds set b to set a.
a - b This removes b from set a.
'+'
operator to include values in a set.
print $Receivers(rx2+rx10+rx1) -> rx2+rx10The second example shows a set composed of all receivers except rx3, rx4 and rx6. It demonstrates the use of the
all
option, and the use of the '-'
operator to remove members from a set.
print $Receivers(all-rx3-rx4-rx6) -> rx0+rx1+rx2+rx5+rx7+rx8+rx9+rx10+rx11+rx12The final example shows that set expressions can contain variables and parentheses.
Receivers foo = rx6+rx7+rx8 Receivers bar = rx3+rx6 print $Receivers($foo - ($bar + rx7)) -> rx8
Option datatypes.
Floating Point Datatypes.
14 14.0 1.4e1 1.4e+1 0.000234 2.34e-4 -3.4Note that for scientific notation
'e'
is used
as the indicator of an exponent. This is the C convention
for entering double precision numbers. The FORTRAN 'D'
equivalent isn't supported.
Unsigned Integer Datatypes.
0b Binary (base 2). The trailing number must written using 1's and 0's.
0 Octal (base 8). The trailing number must be written using digits between 0 and 7, inclusive.
0x Hexadecimal (base 16). The trailing number must be written using characters 0-9 and a-f.
print $Mask(0b1110) # Binary -> 14 print $Mask(0xff) # Hexadecimal -> 255 print $Mask(013) # Octal -> 11 print $mask(13) # Decimal -> 13
Sexagesimal Datatypes.
23.5075 23:30.45 23:30:27 23:30:27.00The integral part of the number comes first. Its fractional part can then either be expressed as a decimal fraction after a decimal point, or it can be expressed as a base 60 fraction. In the latter case each base 60 digit of the fraction is introduced with a colon and denoted by a decimal integer between 0 and 59. The optional fractional part of the final component is expressed as a decimal fraction after a decimal point.