fbpx
维基百科

CPL (程式語言)

CPL(英語:Combined Programming Language,原名Cambridge Programming Language),一種計算機程式語言。源自於ALGOL 60,在1963年,由英国剑桥大学伦敦大学首先開發出來。CPL语言在ALGOL 60的基础上更接近硬件一些,但规模比较大,难以实现。BCPL是它的後繼語言。

CPL
编程范型多范型: 过程式, 指令式, 结构化, 函数式
設計者Christopher Strachey
发行时间1963年,​60年前​(1963
啟發語言
ALGOL 60
影響語言
BCPL, POP-2

例子

函数MAX由Peter Norvig公式化为如下[1]

Max(Items, ValueFunction) = value of § (Best, BestVal) = (NIL, -∞) while Items do § (Item, Val) = (Head(Items), ValueFunction(Head(Items))) if Val > BestVal then (Best, BestVal) := (Item, Val) Items := Rest(Items) §⃒ result is Best §⃒ 

与开符号§相匹配的闭符号是有竖杠贯穿的§。这个符号在Unicode中可以复合为§⃒,它是§ (U+00A7, SECTION SIGN)复合于 ⃒ (U+20D2, COMBINING LONG VERTICAL LINE OVERLAY),但在浏览器中不一定能正确的显示出来。

引用

  1. ^ Peter Norvig. . Blogs.scientificamerican.com. [2013-08-18]. (原始内容存档于2015-05-03). 

参考书目

  • Collected papers of Christopher Strachey, section pertaining to CPL, archived at the Bodleian Library, Oxford; CSAC 71.1.80/C.136-C.184(页面存档备份,存于互联网档案馆
  • Barron, D. W.; Buxton, J. N.; Hartley, D. F.; Nixon, E.; Strachey, C. . The Computer Journal. 1963-08-01, 6 (2): 134–143 [2021-10-18]. ISSN 0010-4620. doi:10.1093/comjnl/6.2.134. (原始内容存档于2022-02-14) (英语). 
  • J. Buxton, J. C. Gray, and D. Park. CPL Elementary Programming Manual, Edition II (Cambridge)(页面存档备份,存于互联网档案馆).
  • University of London Institute of Computer Science and The Mathematical Laboratory, Cambridge. CPL Working Papers(页面存档备份,存于互联网档案馆).

程式語言, 此條目可参照英語維基百科相應條目来扩充, 2022年8月9日, 若您熟悉来源语言和主题, 请协助参考外语维基百科扩充条目, 请勿直接提交机械翻译, 也不要翻译不可靠, 低品质内容, 依版权协议, 译文需在编辑摘要注明来源, 或于讨论页顶部标记, href, template, translated, page, html, title, template, translated, page, translated, page, 标签, 英語, combined, programming, languag. 此條目可参照英語維基百科相應條目来扩充 2022年8月9日 若您熟悉来源语言和主题 请协助参考外语维基百科扩充条目 请勿直接提交机械翻译 也不要翻译不可靠 低品质内容 依版权协议 译文需在编辑摘要注明来源 或于讨论页顶部标记 a href Template Translated page html title Template Translated page Translated page a 标签 CPL 英語 Combined Programming Language 原名Cambridge Programming Language 一種計算機程式語言 源自於ALGOL 60 在1963年 由英国的剑桥大学和伦敦大学首先開發出來 CPL语言在ALGOL 60的基础上更接近硬件一些 但规模比较大 难以实现 BCPL是它的後繼語言 CPL编程范型多范型 过程式 指令式 结构化 函数式設計者Christopher Strachey等发行时间1963年 60年前 1963 啟發語言ALGOL 60影響語言BCPL POP 2例子 编辑函数MAX由Peter Norvig公式化为如下 1 Max Items ValueFunction value of Best BestVal NIL while Items do Item Val Head Items ValueFunction Head Items if Val gt BestVal then Best BestVal Item Val Items Rest Items result is Best 与开符号 相匹配的闭符号是有竖杠贯穿的 这个符号在Unicode中可以复合为 它是 U 00A7 SECTION SIGN 复合于 U 20D2 COMBINING LONG VERTICAL LINE OVERLAY 但在浏览器中不一定能正确的显示出来 引用 编辑 Peter Norvig Prescient but Not Perfect A Look Back at a 1966 Scientific American Article on Systems Analysis Blogs scientificamerican com 2013 08 18 原始内容存档于2015 05 03 参考书目 编辑Collected papers of Christopher Strachey section pertaining to CPL archived at the Bodleian Library Oxford CSAC 71 1 80 C 136 C 184 页面存档备份 存于互联网档案馆 Barron D W Buxton J N Hartley D F Nixon E Strachey C The Main Features of CPL The Computer Journal 1963 08 01 6 2 134 143 2021 10 18 ISSN 0010 4620 doi 10 1093 comjnl 6 2 134 原始内容存档于2022 02 14 英语 J Buxton J C Gray and D Park CPL Elementary Programming Manual Edition II Cambridge 页面存档备份 存于互联网档案馆 University of London Institute of Computer Science and The Mathematical Laboratory Cambridge CPL Working Papers 页面存档备份 存于互联网档案馆 取自 https zh wikipedia org w index php title CPL 程式語言 amp oldid 73131067, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。