DocumentCode
2563205
Title
Compiling linear recursive Prolog programs with list structure into procedural language
Author
Nam, Young K. ; Henschen, Lawrence J.
Author_Institution
Dept. of Electr. Eng. & Comput. Sci., Northwestern Univ., Evanston, IL, USA
fYear
1990
fDate
31 Oct-2 Nov 1990
Firstpage
391
Lastpage
398
Abstract
The authors present an algorithm for transforming a linear recursive program in Prolog which contains the list data structure as a term of the predicate into an iterative program using a while loop in a procedural language like Pascal. This algorithm obtains the same result as Prolog without unification and backtracking. In this algorithm, the recursive programs are classified into two cases, the determined programs and the undetermined programs, according to the conditions of the variables in the program. The unification process is transformed into the set of assignment and conditional statements by analyzing the variables of the rules in the program. Backtracking is accomplished by a traversal of a tree whose nodes contain instantiated predicates
Keywords
PROLOG; program compilers; Pascal; determined programs; iterative program; linear recursive Prolog programs; list data structure; list structure; procedural language; program compilation; undetermined programs; while loop; Data structures; Deductive databases; Ear; Genetic expression; Iterative algorithms; Logic programming; Software engineering; Software libraries; Software tools; Terminology;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Software and Applications Conference, 1990. COMPSAC 90. Proceedings., Fourteenth Annual International
Conference_Location
Chicago, IL
Print_ISBN
0-8186-2054-4
Type
conf
DOI
10.1109/CMPSAC.1990.139389
Filename
139389
Link To Document