首页 | 本学科首页   官方微博 | 高级检索  
     


A polymorphic type system for prolog
Authors:Alan Mycroft,Richard A. O&#x  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 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号