|
[NEXT] [PREV]
HANDBOOK
/ LANGUAGE REFERENCE MANUAL
/Types |
||||||||||||||||||
|
Gentle
Applications Concepts Examples Handbook Support Download
|
TypeDecl =
"'type'" Ident [["="] TermSpec{ [","] TermSpec}] .
TermSpec = IdentLC ["("[ParamSpec{ "," ParamSpec}]")"] . ParamSpec = [Ident ":"] Ident .
Term TypesA type declaration
A parameter specification may be written as
Abstract TypesA type declaration without functor specifications introduces an abstract type. The values of such a type are not specified in Gentle.
Basic TypesThere are three basic types that may be used without being declared. The type INT comprises integer numbers. The type STRING comprises strings of characters. The type POS comprises source coordinates.
|