Re: The semicolon habit (was: Q: Definition

everettm@walters.East.Sun.COM (Mark Everett - Sun Parallel Open Systems)
Thu, 11 May 1995 14:10:05 GMT

          From comp.compilers

Related articles
Re: The semicolon habit (was: Q: Definition lutz@KaPRE.COM (1995-04-28)
Re: The semicolon habit (was: Q: Definition lutz@KaPRE.COM (1995-05-09)
Re: The semicolon habit (was: Q: Definition of a scripting lang.) anw@maths.nottingham.ac.uk (Dr A. N. Walker) (1995-05-02)
Re: The semicolon habit (was: Q: Definition lutz@KaPRE.COM (1995-05-11)
Re: The semicolon habit (was: Q: Definition sys3bga@doc.ntu.ac.uk (1995-05-05)
Re: The semicolon habit (was: Q: Definition stidev@gate.net (1995-05-09)
Re: The semicolon habit (was: Q: Definition plong@perf.com (1995-05-09)
Re: The semicolon habit (was: Q: Definition everettm@walters.East.Sun.COM (1995-05-11)
Re: The semicolon habit (was: Q: Definition schrod@iti.informatik.th-darmstadt.de (1995-05-12)
Re: The semicolon habit (was: Q: Definition anw@maths.nottingham.ac.uk (Dr A. N. Walker) (1995-05-16)
Re: The semicolon habit (was: Q: Definition cef@geodesic.com (Charles Fiterman) (1995-05-17)
Re: The semicolon habit (was: Q: Definition reid@HASKELL.SYSTEMSZ.CS.YALE.EDU (1995-05-16)
Re: The semicolon habit (was: Q: Definition jan@neuroinformatik.ruhr-uni-bochum.de (1995-06-24)
Re: The semicolon habit (was: Q: Definition tim@handel.Princeton.EDU (1995-06-24)
[6 later articles]
| List of all articles for this month |

Newsgroups: comp.compilers
From: everettm@walters.East.Sun.COM (Mark Everett - Sun Parallel Open Systems)
Keywords: syntax, design
Organization: Sun Microsystems Inc. - BDC
References: 95-05-031
Date: Thu, 11 May 1995 14:10:05 GMT

"Dr A. N. Walker" <anw@maths.nottingham.ac.uk> writes:
> ludemann@netcom.com (Peter Ludemann) writes about semicolon-free syntaxes:
> >Indeed: I can think of 3 examples.
>
> Here is a fourth: throw away the semicolons in Pascal, and the
> only ambiguity is that you can't always see where the empty statements are.
> This can easily be cured by adding a visible representation [such as ";"]
> of such statements.
>
> Whether this is a Good Thing from the point of view of the poor
> programmer trying to make sense of the error messages coming from the
> compiler is quite another matter.


I was always under the impression that garbage characters like ';' were
there to enable error recovery to provide meaningful error messages. Statement
delimiters are a place where the compiler can "sync up" with what it is
expecting. They are not needed in correct programs, but rather incorrect
ones.


-everettm
--


Post a followup to this message

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