禁忌症是什么意思| 亚健康是什么意思| 绒毛膜促性腺激素是什么意思| 高铁上不能带什么| 青菜炒什么好吃| 后背发麻是什么原因| 送父亲什么礼物好| 备孕喝豆浆有什么好处| 五十知天命是什么意思| 医学P代表什么| 真空什么意思| 甲基苯丙胺是什么| 日本为什么偷袭珍珠港| 周边什么意思| 糖耐量是什么| 撒贝宁是什么民族| 白带发黄用什么药| 为什么耳屎是湿的| 紧急避孕药有什么副作用| ccu是什么意思| 什么钱最不值钱| VA什么意思| 与虎谋皮什么意思| 怎么算自己五行缺什么| 经常拉肚子挂什么科| 什么鬼大家都喜欢| hpv长什么样| 水浒传为什么叫水浒传| 望尘莫及是什么意思| 桑黄有什么功效| m型发际线适合什么发型| 浅表性胃炎吃什么中药| face是什么意思| 原教旨主义是什么意思| 酒后吐吃什么可以缓解| 腾云驾雾是什么生肖| 马云是什么大学毕业的| 1.20是什么星座| 梦到别人给钱是什么意思| 血清铁蛋白是检查什么| 小孩子肚子疼吃什么药| 为什么会来月经| 匝道是什么| 北字五行属什么| 小便无力是什么原因| 胆结石是什么原因造成的| crayons什么意思| 久站腿肿是什么原因引起的| 肾火旺吃什么药| 寒露是什么意思| 中级职称是什么| 鼻子老是出血是什么原因| 人在什么情况下会发烧| mm代表什么单位| 守株待兔是什么意思| 解脲脲原体是什么意思| 阳历是什么| 山竹吃了有什么好处| 维生素b什么时候吃| 敲锣打鼓是什么生肖| 尿泡沫多是什么原因| 收缩压低是什么原因| 赵云属什么生肖| 指是什么意思| 眼睛干涩用什么眼药水好| 肖战是什么星座| 胰腺炎吃什么药好| 肌电图是检查什么的| 乙肝表面抗体偏高是什么意思| 例假期间吃什么食物好| 先兆性流产有什么症状| 肺结节是什么症状| 双肾泥沙样结石是什么意思| 花开花落不见你回头是什么歌| 醋泡花生米有什么功效| 桑黄有什么功效| 幽门螺杆菌是什么症状| 富三代是什么意思| 单宁是什么| 痛风应该挂什么科| 腰扭伤吃什么药最有效| 雷贝拉唑钠肠溶片什么时候吃| 结节钙化是什么意思| 朱元璋是什么民族| 女性口臭都是什么原因| paris是什么牌子| 脚底发烫是什么原因| 扁桃体发炎可以吃什么水果| 工作效率等于什么| 梦见杀人什么意思| gree是什么牌子| 欲言又止的欲什么意思| 女人手指粗短是什么命| 雏形是什么意思| 九月三号是什么星座| 左眼皮跳是什么预兆女| 自豪的什么| 头顶秃了一小块是什么原因怎么办| 什么是元气| 琥珀是什么意思| 信阳毛尖属于什么茶| 朗姆是什么| 全性向是什么意思| 晚上吃什么最健康| 骑驴找马什么意思| 什么是有机蔬菜| 喝酒会得什么病| 什么病不能吃豆制品| 孑孓什么意思| 心绞痛吃什么药好| 浠字五行属什么| 人咬人有什么危害| 干什么赚钱| 什么头什么发| 喝中药可以吃什么水果| 嘴巴里发苦是什么原因| 急功近利什么意思| 无锡有什么好玩的| 嬴稷和嬴政是什么关系| 精忠报国是什么生肖| 华法林是什么药| 十八层地狱分别叫什么| 89是什么意思| 蜂蜜对人体有什么好处和功效| hot什么意思| 吃维生素b6有什么好处和副作用| 厕所里应该摆什么花| 牙膏什么牌子好| 镁偏高是什么原因| 腥辣食物指的是什么| 雪莲菌泡牛奶有什么功效| 靠谱什么意思| 日本什么时候开始侵略中国| 驱除鞑虏是什么意思| 腰间盘膨出吃什么药效果好| 白术有什么作用| 为什么养猫就没有蟑螂| 什么啊| 蛋白酶是什么东西| 眼睛的晶体是什么| 前列腺回声欠均匀什么意思| 金银花有什么功效| 什么是外包| 2002年属什么生肖| 腰椎间盘突出挂什么科| 胆水的成分是什么| 女生是什么意思| 郭五行属什么| 汗斑是什么原因引起的| 爷爷和孙子是什么关系| 阴茎进入阴道是什么感觉| 什么是五毒| 积食发烧吃什么药| 尖嘴鱼叫什么鱼| 肌酸粉有什么作用| 血肿不治疗有什么后果| 骨髓纤维化是什么病| 梦见小白蛇是什么预兆| 血栓吃什么药最好| 丝瓜水敷脸有什么作用| 吃什么提高免疫力最好最快| 洺字五行属什么| 杰五行属性是什么| 什么水果蛋白质含量高| 怀孕周期是从什么时候开始算的| 什么不息| 水晶粉是什么原料做的| 酸奶和牛奶有什么区别| 虚荣心是什么意思| 晚上吃什么水果减肥效果最好| 骨质疏松挂什么科| 甲沟炎用什么药膏好| 结核杆菌dna检测是检查什么| 血管瘤挂什么科比较好| sharon是什么意思| w3是什么意思| 上海有什么好玩的地方| 下一个台风什么时候来| 羡慕的什么| 骨化性肌炎是什么病| 为什么学习| 指甲有横纹是什么原因| 吃什么助于睡眠| 胃酸是什么症状| 手淫会导致什么疾病| 鳄梨是什么水果| 抬头纹用什么护肤品可以去除| 蓝莓葡萄是什么品种| 布洛芬什么时候起效| 脸肿是什么原因引起的| 阿拉是什么意思| 眼睛老是流眼泪是什么原因| 血燥吃什么好| sample是什么意思| 什么是ts| 什么是主观什么是客观| gr是什么元素| 中国人在印度属于什么种姓| 秒后面是什么单位| 银色山泉香水什么牌子| 村支部书记是什么级别| 年柱将星是什么意思| 9月10日是什么日子| 拉屎黑色的是什么原因| 单硬脂酸甘油酯是什么| 吃牛肉有什么好处| bag是什么意思| 萌萌哒是什么意思| 环状肉芽肿是什么皮肤病| 隐情是什么意思| 经常头晕头疼是什么原因| 什么是g大调| ibd是什么意思| 什么面好吃| 启五行属什么| 猪血炒什么好吃| 内热是什么原因引起的怎么调理| 必承其重上一句是什么| 哺乳期可以喝什么茶| 检查脑袋应该挂什么科| 锡兵是什么意思| 玫瑰花泡水喝有什么功效| 什么马不能跑| 检查膀胱挂什么科| 什么的季节| 立春是什么生肖| 羊肉和什么一起炖最好| 疝气手术是什么| 蓝柑是什么水果| 乌托邦是什么| 身体突然消瘦是什么原因| 腿抖是什么病的预兆| 尿量变少是什么原因| 长痘痘用什么药| 胃气上逆有什么好的办法治疗| 公安局属于什么机关| 手指指尖发麻是什么原因| 脑梗吃什么药效果最好| 手脚发麻是什么病征兆| 脑卒中是什么病| bid什么意思| 颈动脉硬化有什么症状| 旗袍穿什么鞋子好看图| 结节是什么东西| 女菩萨是什么意思| 什么叫疝气| 植树节什么时候| 头晕目眩吃什么药| 南瓜不能和什么一起吃| 胶体是什么| 爱生气的人容易得什么病| 晚上五点是什么时辰| 甲沟炎去医院挂什么科| 疖肿是什么样子的图片| 黑色皮肤适合什么颜色的衣服| 发现新大陆是什么意思| 男生13厘米属于什么水平| 扁平苔藓是什么原因引起的| 寒咳嗽吃什么药止咳效果好| 梦见屎是什么意思| 欢是什么动物| 羊白是什么| 肝囊肿有什么危害| 左顾右盼的顾是什么意思| 百度Jump to content

组图:梅格·瑞恩一件大衣穿几天超节俭 低头疾走风吹头发飘飘

From Wikipedia, the free encyclopedia
百度 ”  花费数周画成,期待抛砖引玉  记者联系上这幅线路图的绘制者王喆玮,他是育才中学一名80后高中数学老师。

Component Pascal
ParadigmsImperative, structured, modular, object-oriented
FamilyWirth Oberon
DeveloperOberon microsystems
First appeared1997; 28 years ago (1997)
Typing disciplineStrong, static
ScopeLexical
Websiteblackboxframework.org
Influenced by
Pascal, Oberon, Oberon-2

Component Pascal is a programming language in the tradition of Niklaus Wirth's Pascal,[1] Modula-2,[2] Oberon[3][4] and Oberon-2.[5] It bears the name of the language Pascal and preserves its heritage, but is incompatible with Pascal. Instead, it is a minor variant and refinement of Oberon-2 with a more expressive type system and built-in string support. Component Pascal was originally named Oberon/L, and was designed and supported by a small ETH Zürich spin-off company named Oberon microsystems. They developed an integrated development environment (IDE) named BlackBox Component Builder. Since 2014, development and support has been taken over by a small group of volunteers. The first version of the IDE was released in 1994, as Oberon/F. At the time, it presented a novel approach to graphical user interface (GUI) construction based on editable forms, where fields and command buttons are linked to exported variables and executable procedures. This approach bears some similarity to the code-behind way used in Microsoft's .NET 3.0 to access code in Extensible Application Markup Language (XAML), which was released in 2008.

An open-source software implementation of Component Pascal exists for the .NET and Java virtual machine (JVM) platforms, from the Gardens Point team around John Gough at Queensland University of Technology in Australia.

On 23 June 2004 Oberon microsystems announced that the BlackBox Component Builder was made available as a free download and that an open-source version was planned. The beta open-source version was initially released in December 2004 and updated to a final v1.5 release in December 2005. It includes the complete source code of the IDE, compiler, debugger, source analyser, profiler, and interfacing libraries, and can also be downloaded from their website. Several release candidates for v1.6 appeared in the years 2009–2011, the latest one (1.6rc6) appeared on Oberon microsystems web pages in 2011. At the end of 2013, Oberon microsystems released the final release 1.6. It is probably the last release bundled by them. A small community took over the ongoing development.

BlackBox Component Pascal uses the extensions .odc (Oberon document) for document files, such as source files, and .osf (Oberon symbol file) for symbol files while Gardens Point Component Pascal uses .cp for source and .cps for symbol files. BlackBox Component Pascal has its own executable and loadable object format .ocf (Oberon code file); it includes a runtime linking loader for this format. The document format (.odc) is a rich text binary format, which allows formatting, supports conditional folding, and allows active content to be embedded in the source text. It also handles user interface elements in editable forms. This is in the tradition of the Oberon Text format.[6]

Syntax

[edit]

The full syntax for CP, as given by the Language Report, is shown below. In the extended Backus–Naur form, only 34 grammatical productions are needed, one more than for Oberon-2, although it is a more advanced language.

Module = MODULE ident ";" 
           [ImportList] DeclSeq 
           [BEGIN StatementSeq] 
           [CLOSE StatementSeq] 
         END ident ".".

ImportList = IMPORT [ident ":="] ident {"," [ident ":="] ident} ";".

DeclSeq = { CONST {ConstDecl ";" } 
          | TYPE {TypeDecl ";"} 
          | VAR {VarDecl ";"}} 
          { ProcDecl ";" | ForwardDecl ";"}.

ConstDecl = IdentDef "=" ConstExpr.

TypeDecl = IdentDef "=" Type.

VarDecl = IdentList ":" Type.

ProcDecl = PROCEDURE [Receiver] IdentDef [FormalPars] MethAttributes 
           [";" DeclSeq [BEGIN StatementSeq] 
           END ident].

MethAttributes = ["," NEW] ["," (ABSTRACT | EMPTY | EXTENSIBLE)].

ForwardDecl = PROCEDURE "^" [Receiver] IdentDef [FormalPars] MethAttributes.

FormalPars = "(" [FPSection {";" FPSection}] ")" [":" Type].

FPSection = [VAR | IN | OUT] ident {"," ident} ":" Type.

Receiver = "(" [VAR | IN] ident ":" ident ")".

Type = Qualident
    | ARRAY [ConstExpr {"," ConstExpr}] OF Type
    | [ABSTRACT | EXTENSIBLE | LIMITED] RECORD ["("Qualident")"] FieldList {";" FieldList} END
    | POINTER TO Type
    | PROCEDURE [FormalPars].

FieldList = [IdentList ":" Type].

StatementSeq = Statement {";" Statement}.

Statement = [ Designator ":=" Expr
    | Designator ["(" [ExprList] ")"]
    | IF Expr THEN StatementSeq
        {ELSIF Expr THEN StatementSeq}
        [ELSE StatementSeq] 
      END
    | CASE Expr OF 
        Case {"|" Case}
        [ELSE StatementSeq] 
      END
    | WHILE Expr DO StatementSeq END
    | REPEAT StatementSeq UNTIL Expr
    | FOR ident ":=" Expr TO Expr [BY ConstExpr] DO StatementSeq END
    | LOOP StatementSeq END
    | WITH [ Guard DO StatementSeq ] 
       {"|" [ Guard DO StatementSeq ] } 
       [ELSE StatementSeq] 
      END
    | EXIT
    | RETURN [Expr]
    ].

Case = [CaseLabels {"," CaseLabels} ":" StatementSeq].

CaseLabels = ConstExpr [".." ConstExpr].

Guard = Qualident ":" Qualident.

ConstExpr = Expr.

Expr = SimpleExpr [Relation SimpleExpr].

SimpleExpr = ["+" | "-"] Term {AddOp Term}.

Term = Factor {MulOp Factor}.

Factor = Designator | number | character | string | NIL | Set | "(" Expr ")" | " ~ " Factor.

Set = "{" [Element {"," Element}] "}".

Element = Expr [".." Expr].

Relation = "=" | "#" | "<" | "<=" | ">" | ">=" | IN | IS.

AddOp = "+" | "-" | OR.

MulOp = "*" | "/" | DIV | MOD | "&".

Designator = Qualident {"." ident 
             | "[" ExprList "]" 
             | "^" 
             | "(" Qualident ")" 
             | "(" [ExprList] ")"} [ "$" ].

ExprList = Expr {"," Expr}.

IdentList = IdentDef {"," IdentDef}.

Qualident = [ident "."] ident.

IdentDef = ident ["*" | "-"].

References

[edit]
  1. ^ Jensen, Kathleen; Wirth, Niklaus (1974–1991). Pascal: User Manual And Report. Springer Verlag. ISBN 978-0-387-97649-5.
  2. ^ Wirth, Niklaus (1982–1985). Programming in Modula-2. Springer Verlag. ISBN 978-3-540-15078-7.
  3. ^ Reiser, Martin; Wirth, Niklaus (1 June 1992). Programming in Oberon: Steps Beyond Pascal and Modula. Addison-Wesley. ISBN 978-0201565430. PDF (334 KB) Archived 3 June 2012 at the Wayback Machine
  4. ^ Wirth, Niklaus; Gutknecht, Jürg (1 November 1992). Project Oberon: The Design of an Operating System and Compiler. Addison-Wesley. ISBN 978-0201544282. PDF (4'398 KB) Archived 10 July 2012 at the Wayback Machine
  5. ^ M?ssenb?ck, Hans-Peter; Wirth, Niklaus (1991). "The Programming Language Oberon-2" (PDF). Structured Programming. 12: 179–195.
  6. ^ M?ssenb?ck, H.; Koskimies, K. (1996). "Active Text for Structuring and Understanding Source Code". Software: Practice and Experience. 26 (7): 833–850. doi:10.1002/(SICI)1097-024X(199607)26:7<833::AID-SPE34>3.0.CO;2-Q.

Further reading

[edit]
[edit]
apf值是什么意思 头爱出汗是什么原因 黄芪喝多了有什么副作用 内痔疮有什么症状 酒吧营销是做什么的
做梦梦见大蟒蛇什么意思 经常打呼噜是什么原因 抗原和抗体有什么区别 五心烦热吃什么药 胃炎是什么症状
关东八大碗都有什么 潜力是什么意思 什么样的云朵 肚脐左侧是什么器官 第二职业干点什么好呢
b型钠尿肽测定是什么检查 宫颈醋酸白色上皮是什么病变 什么食物降血糖 lc是什么意思 老婆饼为什么叫老婆饼
水中加什么擦玻璃干净hcv8jop9ns0r.cn 厚黑学什么意思hcv9jop7ns0r.cn 中国民间为什么要吃腊八粥hcv9jop1ns4r.cn 淋病有什么症状hcv7jop4ns5r.cn 脚踝后面的筋疼因为什么baiqunet.com
六畜大宝在农家是什么生肖hcv7jop7ns4r.cn 除体内湿热最好的中成药是什么hcv8jop6ns1r.cn 甘油三酯高不能吃什么hcv8jop3ns8r.cn 梦见桥塌了有什么预兆hcv8jop9ns2r.cn 一什么羊hcv7jop5ns6r.cn
小孩子记忆力差是什么原因hcv8jop1ns7r.cn 甲状腺结节吃什么好hcv9jop0ns9r.cn 歧途什么意思hcv8jop6ns5r.cn 激素水平是什么意思hcv8jop9ns4r.cn iga肾病是什么病hcv8jop9ns6r.cn
sp是什么面料成分hcv8jop5ns5r.cn 为什么恐龙会灭绝hcv9jop2ns1r.cn 1998属什么onlinewuye.com 0和1什么意思hcv9jop4ns5r.cn 缺钾吃什么hcv8jop1ns6r.cn
百度