Re: Can syntax be enough? No need of semantics.

Andy Walker <news@cuboid.co.uk>
Sat, 19 Sep 2009 01:36:00 +0100

          From comp.compilers

Related articles
Can syntax be enough? No need of semantics. sinu.nayak2001@gmail.com (Srinu) (2009-09-13)
Re: Can syntax be enough? No need of semantics. quinn_jackson2004@yahoo.ca (Quinn Tyler Jackson) (2009-09-18)
Re: Can syntax be enough? No need of semantics. news@cuboid.co.uk (Andy Walker) (2009-09-18)
Re: Can syntax be enough? No need of semantics. anton@mips.complang.tuwien.ac.at (2009-09-18)
Re: Can syntax be enough? No need of semantics. news@cuboid.co.uk (Andy Walker) (2009-09-19)
Re: Can syntax be enough? No need of semantics. dot@dotat.at (Tony Finch) (2009-09-21)
Re: Can syntax be enough? No need of semantics. torbenm@pc-003.diku.dk (2009-09-23)
Re: Can syntax be enough? No need of semantics. gopi.onthemove@gmail.com (gopi) (2009-09-24)
Re: Can syntax be enough? No need of semantics. gopi.onthemove@gmail.com (gopi) (2009-09-24)
Re: Can syntax be enough? No need of semantics. sinu.nayak2001@gmail.com (Srinu) (2009-09-29)
| List of all articles for this month |

From: Andy Walker <news@cuboid.co.uk>
Newsgroups: comp.compilers
Date: Sat, 19 Sep 2009 01:36:00 +0100
Organization: Compilers Central
References: 09-09-062 09-09-067
Keywords: parse
Posted-Date: 21 Sep 2009 15:13:17 EDT

I wrote:
> Never seen a reasonable two-level grammar? Fi!
> [Good point. So why don't we use them? -John]


Good question. Some answers:


    (a) We don't know how to parse them. So we have first to convert
them into simpler grammars, which somewhat defeats the point.


    (b) It's hard work to write one. People who invent languages seem
to prefer to specify an EBNF grammar, or similar, and then add
the semantics by saying in natural language what the rules are.
The result is that no-one knows what C, for example, really is,
as there is no adequately formal specification. Not since the
days when the formal spec was DMR's compiler.


    (c) Fear.


--
Andy Walker
Nottingham



Post a followup to this message

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