Download SICStus Prolog User's Manual

Transcript
398
SICStus Prolog
{
arguments
list
subterm(999)
subterm(999)
-->
|
--> []
| [
listexpr
constant
number
unsigned-number
atom
listexpr
,
-->
atom
-->
|
|
|
arguments
listexpr
subterm(999)
number
unsigned-number
sign unsigned-number
sign inf
sign nan
natural-number
-->
-->
|
}
]
--> subterm(999)
| subterm(999) ,
| subterm(999) |
-->
functor
where name has been declared as an
operator of type T and precedence N
|
unsigned-oat
name
name
Syntax of Tokens as Character Strings
By default, SICStus Prolog uses the ISO 8859/1 character set standard, but will alternatively support the EUC (Extended UNIX Code) standard. This is governed by the value of the environment
variable SP_CTYPE (see Section 1.1 [Start], page 7).
The character categories used below are dened as follows in the two standards:
layout-char
small-letter
In ISO 8859/1, these are character codes 0..32 and 127..159. In EUC, these are character
codes 0..32 and 127. The common subset includes characters such as TAB, LFD, and
SPC.
In ISO 8859/1, these are character codes 97..122, 223..246, and 248..255. In EUC, these
are character codes 97..122 and 128..255. The common subset includes the letters a
through z.
capital-letter
In ISO 8859/1, these are character codes 65..90, 192..214, and 216..222. In EUC, these
are character codes 65..90. The common subset is the letters A through Z.