🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2783

Re: C++ Grammar (Lex & Yacc)

#2783
From: Charley Bay
Date: Wed, 29 Nov 1995 20:33
33 lines
1619 bytes
I have a copy of the draft (28 April 1995) ANSI C++ Standard.
Appendix A has a rough grammar for the language.  I've found
several (more than five) errors already, if anybody is
interested in them.  

I have no doubt whatsoever that the small itallic font is to 
discourage OCR scanning of the grammar.     :-)

Does anybody have the parser or grammer for lex and yacc for
C++?  (Ideally, for the newly proposed standard?)  I could 
write my own, but would rather not. 

If nobody has the grammar available, I'm going to write my
own from Appendix A.  It's a pain, but I'll do it anyway.
If you've found any errata in Appendix A, please let me
know and I'll summarize and post.

Also, does each vendor write its own grammar, or is this
purchased somehow from the standards committee or other vendors?
I don't want to write another compiler, but want a language 
parser for documentation generation.  (Academic interest).

Thanks very much.

--charley                              #include <stdisclaimer.h>
charleyb@gr.hp.com


---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <9511292019.AA06950@hume.gr.hp.com>
Path: arc1-ca.pugleaf.net!128.32.155.1!matt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt
From: Charley Bay <charleyb@hpgrla.gr.hp.com>
Newsgroups: comp.std.c++
Subject: Re: C++ Grammar (Lex & Yacc)
Date: 29 Nov 1995 20:33:52 GMT
Organization: <none>
Approved: matt@physics2.Berkeley.EDU (Matt Austern)
Message-ID: <9511292019.AA06950@hume.gr.hp.com>
NNTP-Posting-Host: physics2.berkeley.edu