Re: Semicolons (Re: Low-Rent Syntax)

rob@baloo.eng.ohio-state.edu (Rob Carriere)
Wed, 5 Sep 90 17:08:29 EDT

          From comp.compilers

Related articles
[5 earlier articles]
Re: Semicolons (Re: Low-Rent Syntax) bart@videovax.tv.tek.com (Bart Massey) (1990-08-26)
Re: Semicolons (Re: Low-Rent Syntax) elsie!ado@uunet.UU.NET (1990-08-27)
Re: Semicolons (Re: Low-Rent Syntax) anw@maths.nott.ac.uk (1990-08-29)
Re: Semicolons (Re: Low-Rent Syntax) liam@cs.qmw.ac.uk (1990-09-03)
Re: Semicolons (Re: Low-Rent Syntax) firth@sei.cmu.edu (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) lins@apple.com (Chuck Lins) (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) rob@baloo.eng.ohio-state.edu (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) MERRIMAN@ccavax.camb.com (George Merriman -- CCA/NY) (1990-09-05)
Re: Semicolons (Re: Low-Rent Syntax) dik@cwi.nl (1990-09-06)
Re: Semicolons (Re: Low-Rent Syntax) dolf@idca.tds.philips.nl (Dolf Grunbauer) (1990-09-15)
Re: Semicolons (Re: Low-Rent Syntax) rhl@grendel.princeton.edu) (1990-09-06)
| List of all articles for this month |

Newsgroups: comp.compilers
From: rob@baloo.eng.ohio-state.edu (Rob Carriere)
In-Reply-To: <2753@sequent.cs.qmw.ac.uk>
Keywords: parse, design
Organization: The Ohio State University Dept of Electrical Engineering
References: <9008202341.AA06543@llama.ingres.com> <4032@rtifs1.UUCP> <1990Aug29.140407.28378@maths.nott.ac.uk>
Date: Wed, 5 Sep 90 17:08:29 EDT

In article <2753@sequent.cs.qmw.ac.uk> you write:
[agreeing with liam@cs.qmw.ac.uk]
>[I have seen many reports that the semicolon as separator, as in Algol 60
>and Pascal, is much harder to get right than the semicolon as terminator,
>as in PL/I and C. -John]


The people at the math department of the Eindhoven University of Technology
claimed that this was because everybody _wrote_ semicolons as terminators.
They said that in a language with semicolon separators one should not write


S1;
S2;
S3


but


  S1
;S2
;S3


I tried this with some Algol 60 programs, and my experience is that it looks
funny for a day or so, but after that you won't have any problems with
forgotten or extra semi's (you may have other problems :-)


Comment1: Accidentely forgetting to insert a semi when you add a statement at
the _top_ is also visually obvious:


  S0
  S1
;S2
;S3


Comment2: I never bothered to find out who invented this convention, so I
can't give proper credit.


Rob Carriere, rob@kaa.eng.ohio-state.edu
"De semicolonius non est disputandum" :-)
[Ugh. I rest my case. - John]
--


Post a followup to this message

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