Topic: C++ grammer


Author: gsternberg@posse.advtech.uswest.com
Date: 21 Apr 1994 19:26:33 GMT
Raw View
   I am looking for a BNF or EBNF or even a LEX/YACC file for the C++ grammer.  Is there
such a beastee ?  Is it in this ARM I hear so much about ?  Basically I am looking for
something that will describe the C++ grammer so I can write a parser that will pull out
certain things that I want from large projects.

Thanks,
Greg Sternberg                                 |  "I don't know, I'm making this
CompuServ: 71155,67                            |   up as I go along" - Indiana
Internet: gsternberg@posse.advtech.uswest.com  |   Jones, Raiders of the Lost Ark
          stergw02@clem.mscd.edu               |
          gsternbe@nyx.csu.du.edu              |




Author: khorsell@ee.latrobe.edu.au (Kym Horsell)
Date: 22 Apr 1994 15:41:25 +1000
Raw View
In article <2p6k19$jp1@cherokee.advtech.uswest.com> gsternberg@posse.advtech.uswest.com writes:
>   I am looking for a BNF or EBNF or even a LEX/YACC file for the C++ grammer.  Is there
>such a beastee ?  Is it in this ARM I hear so much about ?  Basically I am looking for
>something that will describe the C++ grammer so I can write a parser that will pull out
>certain things that I want from large projects.

Tony Davis wrote a fairly good C++ parser. It has symtab routines
and outputs a parse tree. Last I heard it was available at Brown
via anonymous ftp.

-kym




Author: ted@cs.brown.edu (Tony Davis)
Date: Fri, 22 Apr 1994 09:31:20 GMT
Raw View
In article <2p7o25$168@laplace.ee.latrobe.edu.au> khorsell@ee.latrobe.edu.au (Kym Horsell) writes:
> Tony Davis wrote a fairly good C++ parser. It has symtab routines
> and outputs a parse tree. Last I heard it was available at Brown
> via anonymous ftp.

Steve Reiss wrote it, but I maintain it.  It is available via anonymous
ftp from wilma.cs.brown.edu:/pub/cppp.tar.Z


Tony Davis
ted@cs.brown.edu