Re: language twiddling, was Infinite look ahead required by C++?

Neville Dempsey <nevillednz@gmail.com>
Sun, 14 Mar 2010 07:38:31 -0700 (PDT)

          From comp.compilers

Related articles
[7 earlier articles]
Re: language twiddling, was Infinite look ahead required by C++? bobduff@shell01.TheWorld.com (Robert A Duff) (2010-03-05)
Re: language twiddling, was Infinite look ahead required by C++? bobduff@shell01.TheWorld.com (Robert A Duff) (2010-03-05)
Re: language twiddling, was Infinite look ahead required by C++? cfc@shell01.TheWorld.com (Chris F Clark) (2010-03-07)
Re: language twiddling, was Infinite look ahead required by C++? bartc@freeuk.com (bartc) (2010-03-08)
Re: language twiddling, was Infinite look ahead required by C++? cfc@shell01.TheWorld.com (Chris F Clark) (2010-03-10)
Re: language twiddling, was Infinite look ahead required by C++? bobduff@shell01.TheWorld.com (Robert A Duff) (2010-03-12)
Re: language twiddling, was Infinite look ahead required by C++? nevillednz@gmail.com (Neville Dempsey) (2010-03-14)
Re: language twiddling, was Infinite look ahead required by C++? genew@ocis.net (Gene Wirchenko) (2010-04-14)
Re: language twiddling, was Infinite look ahead required by C++? bobduff@shell01.TheWorld.com (Robert A Duff) (2010-04-16)
Re: language twiddling, was Infinite look ahead required by C++? genew@ocis.net (Gene Wirchenko) (2010-04-18)
Re: language twiddling, was Infinite look ahead required by C++? marcov@turtle.stack.nl (Marco van de Voort) (2010-04-19)
| List of all articles for this month |

From: Neville Dempsey <nevillednz@gmail.com>
Newsgroups: comp.compilers
Date: Sun, 14 Mar 2010 07:38:31 -0700 (PDT)
Organization: Compilers Central
References: 10-02-024 10-02-039 10-02-086 10-02-088 10-03-003 10-03-005 10-03-007 10-03-014 10-03-017 10-03-019 10-03-021
Keywords: syntax, design, comment
Posted-Date: 15 Mar 2010 01:08:21 EDT

On Mar 13, 7:17 am, Robert A Duff <bobd...@shell01.TheWorld.com>
wrote:


> But I think "fi" is an abomination. And "elihw" is even worse.
>
> Spell it "end if;" or "end while;" or "end My_Procedure_Name;".


> [Comment I don't see what you're complaining about. -John tnemmoC]


The "while" syntax is roughly:
        WHILE ~ DO ~ OD
or more fully:
      FOR i FROM start TO stop BY step WHILE condition DO clause OD


The "case" syntax - for the 4 choices of 'n' from 1,2,3,4 - is:
    CASE n IN ~,~,~,~ OUT ~ ESAC or in brief: ( n | ~,~,~,~ | ~ )
or as a compound choice of n & o:
    CASE n IN ~,~,~,~ OUSE o IN ~,~,~,~ ESAC or in brief: ( n | ~,~,~,~
|: o | ~,~,~,~ | ~ )


Oddly Algol 68 does not have nested comments like:
      CO ~ OC


Rather comments and pragmas are:
    CO ~ CO and PR ~ PR


However Algol68C lets programmers code in some "reverent" assembler
code blocks:
    CODE ~ EDOC


reg
N
[We're drifiting toward theological arguments about where the semicolon goes, so
this thread is over, please. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.