COP:一种集成命令式编程和声明式编程的简单方法

Charles-Antoine Brunet, R. Gonzalez Rubio
{"title":"COP:一种集成命令式编程和声明式编程的简单方法","authors":"Charles-Antoine Brunet, R. Gonzalez Rubio","doi":"10.1109/CCECE.1995.526606","DOIUrl":null,"url":null,"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.","PeriodicalId":158581,"journal":{"name":"Proceedings 1995 Canadian Conference on Electrical and Computer Engineering","volume":"14 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1995-09-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":"{\"title\":\"COP: a simple way to integrate imperative programming and declarative programming\",\"authors\":\"Charles-Antoine Brunet, R. Gonzalez Rubio\",\"doi\":\"10.1109/CCECE.1995.526606\",\"DOIUrl\":null,\"url\":null,\"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.\",\"PeriodicalId\":158581,\"journal\":{\"name\":\"Proceedings 1995 Canadian Conference on Electrical and Computer Engineering\",\"volume\":\"14 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1995-09-05\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings 1995 Canadian Conference on Electrical and Computer Engineering\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/CCECE.1995.526606\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings 1995 Canadian Conference on Electrical and Computer Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CCECE.1995.526606","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

摘要

本文提出了如何将c++和Prolog两种语言集成为一种语言。生成的语言是COP (c++或Prolog)。这项工作背后的动机是在一种语言中提供两种编程风格,以简化程序编写。例如,当需要以过程或面向对象的方式(c++)和规则(Prolog)进行编程时,应用程序程序员可以使用COP语言。我们的感觉是,程序员可以从我们的方法中受益,因为他或她可以选择使用适合应用程序需要的编程风格。我们提出COP语言。在COP中,我们尽量尊重c++和Prolog的语法、语义和哲学。我们定义了这两种语言如何协同工作。我们的方法是添加一些允许c++调用Prolog目标的特性。我们给出了COP程序员为了使用这种语言必须知道的所有细节;这是可能的,因为我们保持我们的设计尽可能简单。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
COP: a simple way to integrate imperative programming and declarative programming
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.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Numerical optimization for CDMA spreading sequences Intersystem interference modelling for land mobile systems A stable Ka band planar Gunn diode dielectric resonator oscillator (DRO) Performance of a broadband satellite communications system Dynamic range requirements for CDMA-based PCS power amplifiers
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1