DocumentCode
3492417
Title
COP: a simple way to integrate imperative programming and declarative programming
Author
Brunet, Charles-Antoine ; Rubio, Ruben Gonzalez
Author_Institution
Dept. de Genie Electr. & Inf., Sherbrooke Univ., Que., Canada
Volume
2
fYear
1995
fDate
5-8 Sep 1995
Firstpage
1034
Abstract
The paper proposes how to integrate two languages, C++ and Prolog, into one. The resulting language is COP (C++ Or Prolog). The motivation behind this work was to offer in one language two programming styles in order to simplify program writing. For example, an application programmer can use the COP language when it is necessary to program in a procedural or object oriented way (C++) and also with rules (Prolog). Our feeling is that a programmer could benefit from our approach because he or she has the choice to use a programming style adapted to the application needs. We present the COP language. In COP, we try to respect the syntax, the semantics and the philosophies of C++ and Prolog. We define how the two languages can work together. Our approach is to add some features allowing C++ to call Prolog goals. We give all the details that a COP programmer must know in order to use the language; that was possible because we kept our design as simple as we could
Keywords
C language; PROLOG; logic programming; object-oriented languages; object-oriented programming; C++; C++ Or Prolog; COP; Prolog; application programmer; declarative programming; imperative programming; object oriented programming; program writing; programming styles; semantics; syntax; Computer bugs; Computer languages; Costs; Expert systems; Libraries; Mice; Program processors; Programming profession; User interfaces; Writing;
fLanguage
English
Publisher
ieee
Conference_Titel
Electrical and Computer Engineering, 1995. Canadian Conference on
Conference_Location
Montreal, Que.
ISSN
0840-7789
Print_ISBN
0-7803-2766-7
Type
conf
DOI
10.1109/CCECE.1995.526606
Filename
526606
Link To Document