DocumentCode
3108029
Title
Type inference by program transformation and partial evaluation
Author
Fruwirth, T.W.
Author_Institution
Inst. fur Angewandte Inf., Tech. Univ. of Vienna
fYear
1988
fDate
9-13 Oct 1988
Firstpage
347
Lastpage
354
Abstract
A simple yet powerful metaprogramming method to derive type information from Prolog programs is proposed. Prolog itself is used to represent the type information, so no special language for types is necessary. Metaprogramming techniques also manipulate the types derived. A kind of program transformation, called type projection, infers type information expressed in Prolog. The inferred type procedures can be used to check the consistency of the program and in some cases, even to generate instances of the type. The author defines a nonredundant standard representation of a type. The standardization algorithm is an adaptation of partial evaluation. He extends type projection by partial evaluation to derive more precise types. For the first time, a part of the type information inherent in negated goals is utilized. Type negation is introduced
Keywords
PROLOG; data structures; programming; Prolog; data structures; metaprogramming; negated goals; partial evaluation; program transformation; standardization algorithm; type information; type projection; Computer languages; Data structures; Debugging; Documentation; Logic programming; Standardization;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Languages, 1988. Proceedings., International Conference on
Conference_Location
Miami Beach, FL
Print_ISBN
0-8186-0874-9
Type
conf
DOI
10.1109/ICCL.1988.13083
Filename
13083
Link To Document