命名:BEGIN ~ END 与 LIVE ~ EVIL 块结构语言
大括号语言是众所周知的:(wikipedia)
其他编程语言可以有 BEGIN ~ END 与 LIVE ~ 邪恶的块结构。例如
A) BEGIN ~ END、DO ~ END、IF ~ END IF - 示例: Ada,模块,Pascal >、PL/I、Ruby 等等...
B) IF ~ FI, DO ~ OD, CASE ~ IN ~ OUT ~ ESAC - 示例: 行动!,ALGOL 68,伯恩 shell,酷,ELLA, 守卫指挥部 语言,Lucid,Opal, 枫,玛丽, 多语言,Promela 等...
区分两种不同风格 A) 和 A) 的官方(或其他合理)名称是什么? B) 块结构 ?
Curly Bracket languages are well known: (wikipedia)
Other programming languages can have BEGIN ~ END vs LIVE ~ EVIL block structuring. eg
A) BEGIN ~ END, DO ~ END, IF ~ END IF - examples:
Ada, Modula, Pascal, PL/I, Ruby
etc...
B) IF ~ FI, DO ~ OD, CASE ~ IN ~ OUT ~ ESAC -
examples: Action!, ALGOL 68, Bourne
shell, Cool, ELLA, Guarded Command
Language, Lucid, Opal, Maple, Mary,
Polyglot, Promela etc...
What are the official (or-else reasonable) names to differentiate the between the two different styles A) & B) of block structuring ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
http://en.wikipedia.org/wiki/Curly_bracket_programming_language
FTA:
我从中得到的意思是:
{} = 大括号编程语言
BEGIN END = 配对关键字
缩进 = 越位
并不是说维基百科是权威的,但它似乎与您所得到的最接近“官方”名称,并且如果您这样引用它们,大多数人可能会立即知道您在说什么。
http://en.wikipedia.org/wiki/Curly_bracket_programming_language
FTA:
I take from that as meaning:
{} = curly bracket programming languages
BEGIN END = paired keyword
indentation = off-side
Not to say that Wikipedia is definitive, but it seems as close to "official" names as you will get, and most people would probably immediately know what you are talking about if you refer to them as such.
我担心这个答案可能会让人不满意。我只听说过花括号编程语言和非花括号编程语言:)
I fear that answer may be dissatisfying. Only names I heard of were Curly bracket programming languages and Non-curly-bracket programming languages :)
Algol 实际上以
if
-then
-begin
-end
语法开始,然后转到if
> -then
-fi
语法,因此最好避免调用任何“类似 Algol”的内容。如果您将begin
-end
风格称为“类似 Pascal”的括号,并将if
- < code>fi 风格“sh-like”包围。Algol actually started with
if
-then
-begin
-end
syntax before moving toif
-then
-fi
syntax, so it's probably best to avoid calling anything "Algol-like". A lot of people would probably get your drift if you called thebegin
-end
style "Pascal-like" bracketing, and theif
-fi
style "sh-like" bracketing.作为“反转”的双关语,我建议:IF ~ FI、DO ~ OD、CASE ~ IN ~ OUT ~ ESAC 作为“虔诚”的块结构。
第一个“虔诚”块结构的情况可以在 http://ALGOL 公告 - ISSN: 0084-6198,但是我找不到发起者姓名或确切的帖子。
因此,BEGIN ~ END、DO ~ END、IF ~ END IF 也是“不敬的”块结构。
出现得更早(并且在计算之外)的技术回文的示例是开尔文勋爵的 Mho (℧)。
As a pun on "reversed" I suggest: IF ~ FI, DO ~ OD, CASE ~ IN ~ OUT ~ ESAC as "reverent" block structuring.
The first case of "reverent" block structuring might be found in http://ALGOL Bulletin - ISSN: 0084-6198, however I cannot find the originators name or an exact posting.
Hence also: BEGIN ~ END, DO ~ END, IF ~ END IF as "irreverent" block structuring.
An example of a technical palindrome that appears much earlier (and outside of computing) would be Lord Kelvin's Mho (℧).