Related articles |
---|
[5 earlier articles] |
Re: Looking for volunteers for XL bc@freeuk.com (BartC) (2011-11-27) |
Re: Looking for volunteers for XL kaz@kylheku.com (Kaz Kylheku) (2011-11-28) |
Re: Looking for volunteers for XL tdk@thelbane.com (Timothy Knox) (2011-11-27) |
Re: Looking for volunteers for XL bc@freeuk.com (BartC) (2011-11-28) |
Re: Looking for volunteers for XL gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-11-28) |
Re: Looking for volunteers for XL christophe@taodyne.com (Christophe de Dinechin) (2011-11-28) |
Re: Looking for volunteers for XL gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-11-29) |
Re: Looking for volunteers for XL jussi.santti@ard.fi (ardjussi) (2011-11-30) |
Re: Looking for volunteers for XL kaz@kylheku.com (Kaz Kylheku) (2011-12-01) |
Re: Looking for volunteers for XL kaz@kylheku.com (Kaz Kylheku) (2011-12-01) |
Re: Looking for volunteers for XL blog@rivadpm.com (Alex McDonald) (2011-12-01) |
Re: macros, Looking for volunteers for XL genew@ocis.net (Gene Wirchenko) (2011-12-03) |
Re: macros, Looking for volunteers for XL gah@ugcs.caltech.edu (glen herrmannsfeldt) (2011-12-05) |
[2 later articles] |
From: | glen herrmannsfeldt <gah@ugcs.caltech.edu> |
Newsgroups: | comp.compilers |
Date: | Tue, 29 Nov 2011 07:37:49 +0000 (UTC) |
Organization: | Aioe.org NNTP Server |
References: | 11-11-048 11-11-053 11-11-054 11-11-061 11-11-064 |
Keywords: | syntax, design |
Posted-Date: | 30 Nov 2011 21:55:57 EST |
BartC <bc@freeuk.com> wrote:
(snip)
> Take the well-known language C, which has a crude mechanism to extend
> it in the form of its pre-processing macro language.
Now consider the less well known language PL/I, with a much
fancier preprocessor. The PL/I preprocessor allows preprocessor
procedures, and procedure calls.
(snip)
> [Anyone ever look at the code for the Bourne shell, written in faux
> Algol-68 using C preprocessor macros. Yow. -John]
You mean like:
#define BEGIN {
#define END }
I have seen faux-Pascal before, but not faux-Algol.
-- glen
[The faux Algol-68 was pretty amazing. For that matter, so was the
PL/I preprocessor, which let you write entire programs that run at
compile time. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.