Re: C++ Grammar

Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
15 Aug 2001 01:19:42 -0400

          From comp.compilers

Related articles
C++ Grammar aarongray@beeb.net (Aaron Gray) (2001-08-06)
Re: C++ Grammar mike@dimmick.demon.co.uk (Mike Dimmick) (2001-08-08)
Re: C++ Grammar dosreis@cmla.ens-cachan.fr (Gabriel Dos Reis) (2001-08-08)
Re: C++ Grammar mike@dimmick.demon.co.uk (Mike Dimmick) (2001-08-08)
Re: C++ Grammar aarongray@beeb.net (Aaron Gray) (2001-08-15)
Re: C++ Grammar dosreis@cmla.ens-cachan.fr (Gabriel Dos Reis) (2001-08-15)
Re: C++ Grammar aarongray@beeb.net (Aaron Gray) (2001-08-15)
Re: C++ Grammar dosreis@cmla.ens-cachan.fr (Gabriel Dos Reis) (2001-08-16)
Re: C++ Grammar iank@idiom.com (2001-08-17)
Re: C++ Grammar jerry@swsl.co.uk (Jerry Evans) (2001-08-17)
Re: C++ Grammar cfc@world.std.com (Chris F Clark) (2001-08-17)
Re: C++ Grammar idbaxter@semdesigns.com (Ira D. Baxter) (2001-08-18)
[3 later articles]
| List of all articles for this month |
From: Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
Newsgroups: comp.compilers
Date: 15 Aug 2001 01:19:42 -0400
Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
References: 01-08-037 01-08-046 01-08-055
Keywords: C++, parse
Posted-Date: 15 Aug 2001 01:19:36 EDT

"Mike Dimmick" <mike@dimmick.demon.co.uk> writes:


| "Gabriel Dos Reis" <dosreis@cmla.ens-cachan.fr> wrote in message
| > "Aaron Gray" <aarongray@beeb.net> writes:
| >
| > | Dear All,
| > | does anyone happen to know or have a more up to date C++ grammar
| than
| > | the old comp.compilers one :-
| > |
| > | ftp://ftp.iecc.com/pub/file/c++grammar
| >
| > You may find one in B. Stroustrup's third "The C++ Programming Language".
|
| > [Any idea how well it works with parser generators? -John]
|
| There's A grammar there. It's for explanation of the language, and is a
| direct duplicate of Appendix A of ISO/IEC 14882:1998 (or in other words, the
| C++ standard).
|
| It's not LALR(1), nor is it LL(k), and it isn't suitable for direct
| implementation by any method. At least, I found that it wasn't.


Well, The original poster asked for "a more up to date C++ grammar".
At CodeSourcery, we're basing a hand-written parser on it.


-- Gaby



Post a followup to this message

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