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]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.