Skip to main content

1986 | OriginalPaper | Buchkapitel

Type Checking

verfasst von : Johan Lewi, Jan Paredaens

Erschienen in: Data Structures of Pascal, Algol 68, PL/1 and Ada

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

The role of type checking is to verify that every expression and subexpression is used in a consistent way within the program. In SMALL, compound expressions are built up from subexpressions in the way explained in Chapters 8 and 9, using the operators M RES , M CONT ,M SEL , M DEUNION and M CONSTR . The subexpressions which are the arguments of such an operator cannot have arbitrary types, but have to obey a number of laws. These type laws are verified by the type checker. Furthermore, the type checker derives the type of the compound expression from the types of its subexpressions.

Metadaten
Titel
Type Checking
verfasst von
Johan Lewi
Jan Paredaens
Copyright-Jahr
1986
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-642-70239-6_11

Premium Partner