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
Enthalten in: Professional Book Archive
Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.
Wählen Sie Textabschnitte aus um mit Künstlicher Intelligenz passenden Patente zu finden. powered by
Markieren Sie Textabschnitte, um KI-gestützt weitere passende Inhalte zu finden. powered by
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.