Related articles |
---|
ALGOL - lexical analyzer edimodric@makni.inet.hr (Eddie) (2005-05-05) |
Re: ALGOL - lexical analyzer nmm1@cus.cam.ac.uk (2005-05-06) |
Re: ALGOL - lexical analyzer henry@spsystems.net (2005-05-07) |
Re: ALGOL - lexical analyzer nmm1@cus.cam.ac.uk (2005-05-07) |
Re: ALGOL - lexical analyzer Trevor.Jenkins@suneidesis.com (2005-05-07) |
Re: ALGOL - lexical analyzer haberg@math.su.se (2005-05-07) |
Re: ALGOL - lexical analyzer nmm1@cus.cam.ac.uk (2005-05-08) |
Re: ALGOL - lexical analyzer gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-05-08) |
Re: ALGOL - lexical analyzer gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-05-08) |
From: | haberg@math.su.se (Hans Aberg) |
Newsgroups: | comp.compilers |
Date: | 7 May 2005 17:02:03 -0400 |
Organization: | Mathematics |
References: | 05-05-027 05-05-029 |
Keywords: | algol60 |
Posted-Date: | 07 May 2005 17:02:03 EDT |
nmm1@cus.cam.ac.uk (Nick Maclaren) wrote:
> [Algol 60 had a well-defined display representation suitable for
> printing in magazines, with keywords in boldface, but it was about 35
> years too early for computers to do that. Some implementations
> reserved the keywords, e.g. BEGIN and END which was wrong since you
> were allowed to have variables called begin and end, others did gross
> things like quoting them all, e.g., 'BEGIN' and 'END' which was
> unusable. I can't lay my hands on my Algol68 report but as I recall
> they avoided that mistake and defined it in a single ASCII-ish
> character set. -John]
This interesting question came up in the Unicode list resently. I found a
reference that describes it correctly:
http://en.wikipedia.org/wiki/ALGOL
In short, the ALGOL uses boldface the same way one does in pure
mathematics, i.e., it changes the semantics. Because of this semantics
change in pure math, different letter styles was added to Unicode
(thanks to Ken Whistler willing to listen to my explanations). It
means that ALGOL can now be implemented correctly, using the Unicode
chracter set. This is otherwise one of the few instances of computer
code where rendering style of letters affect the semantics. Past ALGOL
compiler writers, not having access to a character set differing
between bold and plain letters, had to improvise something.
--
Hans Aberg
Return to the
comp.compilers page.
Search the
comp.compilers archives again.