A polymorphic type system for prolog |
| |
Authors: | Alan Mycroft,Richard A. O Keefe |
| |
Affiliation: | Department of Computer Science, Edinburgh University, Kings Buildings, Mayfield Road, Edinburgh EH9 3JZ, U.K.;Department of Artificial Intelligence, Edinburgh University, Hope Park Square, Meadow Lane, Edinburgh EH8 9NW, U.K. |
| |
Abstract: | We describe a polymorphic type scheme for Prolog which makes static type checking possible. Polymorphism gives a good degree of flexibility to the type system, and makes it intrude very little on a user's programming style. The only additions to the language are type declarations, which an interpreter can ignore if it so desires, with the guarantee that a well-typed program will behave identically with or without type checking. Our implementation is discussed and we observe that the type resolution problem for a Prolog program is another Prolog (meta)program. |
| |
Keywords: | |
本文献已被 ScienceDirect 等数据库收录! |
|