9.5 Object expressions9.5 Object expressions
9 SML translator 9 SML translator
9.7 Value expressions 9.7 Value expressions
9.6 Type expressions

9.6 Type expressions

9.6.1 Type literals

The RSL type literals are accepted.

9.6.2 Names

A type name that is not an abbreviation translates as a name. A type name that is an abbreviation translates as the abbreviation.

9.6.3 Product type expressions

A product type expression translates to a structure that defines equality and a "toString" function for output.

9.6.4 Set type expressions

A set type expression translates to an instantiation of the set functor from the RSL library.

9.6.5 List type expressions

A list type expression translates to an instantiation of the list functor from the RSL library.

9.6.6 Map type expressions

A map type expression translates to an instantiation of the map functor from the RSL library.

9.6.7 Function type expressions

A function type expression translates to an instantiation of the function functor from the RSL library.

9.6.8 Subtype expressions

A subtype expression translates as its maximal type.

9.6.9 Bracketed type expressions

A bracketed type expression translates as its constituent type expression.
Chris George, April 17, 2008

9.6 Type expressions
9.5 Object expressions9.5 Object expressions
9 SML translator 9 SML translator
9.7 Value expressions 9.7 Value expressions