Related articles |
---|
Why context-free? nmm1@cus.cam.ac.uk (2005-10-06) |
Re: Why context-free? bobduff@shell01.TheWorld.com (Robert A Duff) (2005-10-07) |
Re: Why context-free? nmm1@cus.cam.ac.uk (2005-10-08) |
Re: Why context-free? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-10-09) |
Re: Why context-free? nmm1@cus.cam.ac.uk (2005-10-13) |
Re: syntax extension, was Why context-free? toby@telegraphics.com.au (toby) (2005-11-01) |
Re: syntax extension, was Why context-free? nmm1@cus.cam.ac.uk (2005-11-01) |
Re: syntax extension, was Why context-free? 148f3wg02@sneakemail.com (Karsten Nyblad) (2005-11-01) |
Re: syntax extension, was Why context-free? gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-11-02) |
Re: syntax extension, was Why context-free? haberg@math.su.se (2005-11-02) |
Re: syntax extension, was Why context-free? toby@telegraphics.com.au (toby) (2005-11-04) |
Re: language design, syntax extension, was Why context-free? owong@castortech.com (Oliver Wong) (2005-11-12) |
[7 later articles] |
From: | "toby" <toby@telegraphics.com.au> |
Newsgroups: | comp.compilers |
Date: | 1 Nov 2005 00:22:34 -0500 |
Organization: | http://groups.google.com |
References: | 05-10-05305-10-061 05-10-062 05-10-068 05-10-075 |
Keywords: | parse, design |
Posted-Date: | 01 Nov 2005 00:22:34 EST |
Nick Maclaren wrote:
> glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:
> >John wrote:
> > > [
> >> diagnostics and general readability. When you start building types
> >> into the syntax, that means that many type errors now are likely to
> >> produce "syntax error" rather than "string found where boolean
> >> expected", and I have to say your 2 vs. 3 way branch is grosser than
> >> anything I've done in perl. As far as extending the syntax on the
> >> fly, that avenue was extensively investigated in the 1970s in
> >> languages like IMP-72 and EL/1, all of which died.
> >
> >Two languages that I have used recently that allow syntax changes, TeX
> >and mathematica, don't seem to be going away so fast.
>
> Not to say Lisp :-)
>
> >There are some very strange errors that you can get in both languages.
>
> Yes, indeed. TeX, in particular, is ghastly - but that has little
> to do with its extensibility. ...
But TeX (like METAFONT) is closely tailored to its domain, and within
that domain, is quite elegant. Of course it can be 'ghastly' for tasks
of a different character - Knuth himself gives several examples in The
TeXbook. Anything is *possible* but not necessarily easy.
Similarly I find that many people who complain about Perl - especially
comparing it to languages such as Ruby or Python - have missed the
point. Perl has its sweet spot domains (as a child of sed, C, sh, etc)
and while it is a powerful general purpose programming language, that
was not its guiding principle. It was highly adapted from birth.
--Toby
Return to the
comp.compilers page.
Search the
comp.compilers archives again.