
A6.3 Constants 129
A6.2.1 Keywords
The following keywords are reserved:
∗3
keyword: one of
and delete endp goto matrix string
break do eq gt ne until
call else eqv if not while
clear elseif external keyword or xor
clearg endata fn le pop
continue endfor for let proc
dataloop endif ge local retp
declare endo gosub lt return
A6.3 Constants
Arithmetic types and string type have corresponding constants.
constant:
scalar-constant
matrix-constant
vector-constant
string-constant
scalar-constant:
int-constant
double-constant
A6.3.1 Integer constants
A sequence of digits is an integer constant. A hexadecimal constant is a sequence of
digits and the letters A to F or a to f,prefixedby0x or 0X.
A6.3.2 Character constants
∗
Character constants are interpreted as an integer constant. A character constant is an
integer constant consisting of a single character enclosed in single quotes (e.g. ’a’ and
’0’) or an escape sequence (see §A6.3.5) enclosed in single quotes.
A6.3.3 Double constants
A double constant consists of an integer part, a decimal point, a fraction part, an e, E,
d or D and an optionally signed integer exponent. Either the integer or the fraction part
may be missing (not both); either the decimal point or the full exponent may be missing
3
This is different from GAUSS, where all variables and functions in the namespace become
reserved words.
Komentarze do niniejszej Instrukcji