Re: Use of punctuation in a language?

James Cownie <jcownie@etnus.com>
11 Nov 2003 14:38:41 -0500

          From comp.compilers

Related articles
Use of punctuation in a language? hsauro@cs.caltech.edu (Herbert) (2003-10-31)
Re: Use of punctuation in a language? derkgwen@HotPOP.com (Derk Gwen) (2003-11-01)
Re: Use of punctuation in a language? rosing@peakfive.com (MattR) (2003-11-01)
Re: Use of punctuation in a language? gah@ugcs.caltech.edu (Glen Herrmannsfeldt) (2003-11-02)
Re: Use of punctuation in a language? joachim.durchholz@web.de (Joachim Durchholz) (2003-11-08)
Re: Use of punctuation in a language? bobduff@shell01.TheWorld.com (Robert A Duff) (2003-11-08)
Re: Use of punctuation in a language? bear@sonic.net (Ray Dillinger) (2003-11-11)
Re: Use of punctuation in a language? jcownie@etnus.com (James Cownie) (2003-11-11)
Re: Use of punctuation in a language? landauer@got.net (Doug Landauer) (2003-11-11)
Re: Use of punctuation in a language? Martin.Ward@durham.ac.uk (Martin Ward) (2003-11-11)
Re: Use of punctuation in a language? jvorbrueggen@mediasec.de (Jan C. =?iso-8859-1?Q?Vorbr=FCggen?=) (2003-11-21)
Re: Use of punctuation in a language? vbdis@aol.com (2003-11-21)
Re: Use of punctuation in a language? rkrayhawk@aol.com (2003-12-03)
Re: Use of punctuation in a language? house@usq.edu.au (Ron House) (2003-12-03)
| List of all articles for this month |

From: James Cownie <jcownie@etnus.com>
Newsgroups: comp.compilers
Date: 11 Nov 2003 14:38:41 -0500
Organization: Compilers Central
References: 03-10-129 03-11-016 03-11-034
Keywords: syntax
Posted-Date: 11 Nov 2003 14:38:41 EST

Robert A Duff wrote:


> I don't like languages with significant end-of-lines, because you
> inevitably end up needing to write something longer than a physical line
> (on a piece of paper, or in a window), and then you need some kludgery
> to say "this particular end-of-line is not a terminator".


BCPL had this right. Newline ended a statement unless the parser was
in a state where it needed more tokens in which case the newline was
ignored.


So
      a := b + c +
                d


is fine, but
      a := b + c
                + d


would give an error.


Leaving a trailing operator at the end of the line is very simple to
learn, and is also a good visual cue that the expression needs to
continue.


Yet another good thing that was lost in the transition via B to C :-(
(others including valof ... resultis, endcase etc...)


--
-- Jim


James Cownie <jcownie@etnus.com>
Etnus, LLC. +44 117 9071438
http://www.etnus.com


Post a followup to this message

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