Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c++ > #299

Re: Repitition in grammer

From Daniel Krügler<daniel.kruegler@googlemail.com>
Newsgroups comp.std.c++
Subject Re: Repitition in grammer
Date 2011-09-20 10:10 -0700
Organization A noiseless patient Spider
Message-ID <j58hff$5mg$1@dont-email.me> (permalink)
References <43f1e1eb-f815-4708-b83e-75c647c01c9e@m38g2000vbn.googlegroups.com>

Show all headers | View raw


Am 17.09.2011 04:46, schrieb cv_curious:
>  Referring to Appendix A of ISO/IEC 14882:2011, the following seems to
>  have been repeated twice in A.1 and A.6:
>
>  typedef-name:
>          identifier

This is not the only place of a repetition, e.g. /class-name/ is defined
in both A.1 and A.8 as another example.

>  Is this intentional?

I think it is intentional. Note that the grammar summary in annex A is
sub-divided into several non-exclusive categories, like "keywords" and
"declarations" and "classes", etc.

>  Is their any 'officially' maintained version
>  available in plain text format and proper BNF notation meant for
>  writers of parsers/pretty printers??

Not that I know of. Annex A for sure is *not*. The introduction clearly
says

"This summary of C++ syntax is intended to be an aid to comprehension.
It is not an exact statement of the language."

Further, the complete annex A has the attribute "informative" and is
considered as a non-normative, purely informative addition to the
standard document. This is conform to ISO/IEC rules (see 5.1.3 of
"ISO/IEC Directives, Part 2" from

http://preview.tinyurl.com/3a4qh3

>  It is SUCH a pain to manually go
>  through almost 1000 lines of grammar and hand-edit it to comply with
>  parser tools. Anyone have any suggestions in this regard?

Unfortunately, I have not.

HTH&  Greetings from Bremen,

Daniel Krügler


-- 
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]

Back to comp.std.c++ | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Repitition in grammer cv_curious <phdscholar80@yahoo.com> - 2011-09-16 19:46 -0700
  Re: Repitition in grammer Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-09-20 10:10 -0700
    Re: Repitition in grammer cv_curious<phdscholar80@yahoo.com> - 2011-09-24 21:47 -0700
      Re: Repitition in grammer Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-09-25 08:28 -0700
  Re: Repitition in grammer Joshua Maurice<joshuamaurice@gmail.com> - 2011-09-21 11:08 -0700

csiph-web