DocumentCode :
1591431
Title :
Denotational semantics-directed compilation using Prolog
Author :
Pan, Aiqin ; Bryant, Barrett R.
Author_Institution :
Dept. of Comput. & Inf. Sci., Alabama Univ., Birmingham, AL, USA
fYear :
1990
Firstpage :
122
Lastpage :
127
Abstract :
Logic programming is advocated as a style for specifying the denotational semantics of programming languages. To investigate the applicability of logic programming as a metalanguage for denotational semantics, the authors have developed Prolog definitions of a simple imperative subject language using both an interpretive approach which uses the denotational semantics to interpret programs on some input and a compiler-oriented approach which translates programs into lambda calculus, essentially embedding a functional style into Prolog predicates. To make the latter executable, a lambda calculus machine is also defined in Prolog. It is found that there is a very natural representation of the denotational semantics domains and evaluation functions in Prolog. The compiler-oriented definition in particular has the significant property that the compilation of source programs can be executed in parallel. The result is that logic programming is a very suitable approach to denotational semantics and formal specification of programming languages in general
Keywords :
PROLOG; computational linguistics; formal logic; logic programming; program compilers; Prolog definitions; Prolog predicates; compiler-oriented approach; compiler-oriented definition; denotational semantics; formal specification; functional style; interpretive approach; lambda calculus; lambda calculus machine; logic programming; metalanguage; programming languages; simple imperative subject language; source programs; Automatic logic units; Calculus; Computer languages; Formal specifications; Functional programming; High level languages; Logic programming; Natural languages; Parallel processing; Program processors;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Applied Computing, 1990., Proceedings of the 1990 Symposium on
Conference_Location :
Fayetteville, AR
Print_ISBN :
0-8186-2031-5
Type :
conf
DOI :
10.1109/SOAC.1990.82152
Filename :
82152
Link To Document :
بازگشت