archives

Design and implementation of a reusable type inference engine and its application to Scheme


Home 

About 

Browse 

Search 

Register 

Subscriptions 

Deposit Papers 

Help
    

Dorn, Brian (2005) Design and implementation of a reusable type inference engine and its application to Scheme. Technical Report 05-16, Department of Computer Science, Iowa State University.

Full text available as:Adobe PDF

Abstract

Static type checking allows programmers to locate potential bugs prior to code execution. However, developing a static type checker is a complicated endeavor. Implementers must address a number of concerns including recursion over syntax elements, unification of type variables within environments, and generation of meaningful error messages for users. The inherent complexity of type checkers can lead to code that is difficult to both understand and maintain. This thesis presents the design and implementation of an abstract type inference engine and its use in the revision of a student-oriented type checker for the Scheme programming language. Our inference engine provides a complete set of unification facilities to programmers for the specication of a type checking system. It allows for a clean separation of unification algorithms, inference rules, and error generation. We also demonstrate the applicability of the engine by using it to construct a type checker for Scheme targeted at novice programmers. This checker borrows a student-friendly type notation from a previous version and extends its system, providing for language native module support, a more complete treatment of advanced data types, and better error messages.

Keywords:type inference, Scheme language, Typedscm language
Subjects:Software: PROGRAMMING TECHNIQUES (E): Applicative (Functional) Programming
Software: PROGRAMMING LANGUAGES: Language Constructs and Features (E.2)
Software: PROGRAMMING LANGUAGES: Processors
ID code:00000378
Deposited by:Brian Dorn on 25 July 2005



Contact site administrator at: ssg@cs.iastate.edu