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) |
[6 later articles] |
From: | "Mike Dimmick" <mike@dimmick.demon.co.uk> |
Newsgroups: | comp.compilers |
Date: | 8 Aug 2001 13:37:47 -0400 |
Organization: | Compilers Central |
References: | 01-08-037 01-08-046 |
Keywords: | C++, parse |
Posted-Date: | 08 Aug 2001 13:37:31 EDT |
"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.
My copy of Stroustrup has now lost pages 848-9 (from memory) due to being
overly referenced!
--
Mike Dimmick
Return to the
comp.compilers page.
Search the
comp.compilers archives again.