Download GAUSS for Windows User Guide

Transcript
UserGuid.book Page 29 Thursday, June 1, 2000 2:03 PM
Language Fundamentals
Column position is not significant. Blank lines are allowed. Inside a statement and
outside of double quotes, the carriage return/line feed at the end of a physical line will
be converted to a space character as the program is compiled.
A statement containing a quoted string can be continued across several lines with a
backslash:
s = “This is one really long string that would be” \
“difficult to assign in just a single line.”;
Case
GAUSS does not distinguish between uppercase and lowercase except inside double
quotes.
Comments
/*
@
this kind of comment can be nested
*/
this kind of comment cannot be nested
@
Extraneous Spaces
Extraneous spaces are significant in print and lprint statements where the space
is a delimiter between expressions:
print x y z;
In print and lprint statements, spaces can be used in expressions that are in
parentheses:
print (x * y) (x + y);
Symbol Names
The names of matrices, strings, procedures, and functions can be up to 32 characters
long. The characters must be alphanumeric or an underscore. The first character must
be alphabetic or an underscore.
Labels
A label is used as the target of a goto or a gosub. The rule for naming labels is the
same as for matrices, strings, procedures, and functions. A label is followed
immediately by a colon:
here:
4-29