Re: Parsing C++ headers?

Cleveland A Gibbon <cag@Cs.Nott.AC.UK>
11 Apr 1996 23:47:47 -0400

          From comp.compilers

Related articles
Parsing C++ headers? 104316.1514@CompuServe.COM (John Mitchell) (1996-04-06)
Re: Parsing C++ headers? (1996-04-08)
Re: Parsing C++ headers? cag@Cs.Nott.AC.UK (Cleveland A Gibbon) (1996-04-11)
Re: Parsing C++ headers? (1996-04-14)
Re: Parsing C++ headers? (1996-04-16)
Re: Parsing C++ headers? (Graham D Parrington) (1996-04-18)
Re: Parsing C++ headers? (1996-04-18)
| List of all articles for this month |

From: Cleveland A Gibbon <cag@Cs.Nott.AC.UK>
Newsgroups: comp.lang.c++,comp.compilers
Date: 11 Apr 1996 23:47:47 -0400
Organization: Compilers Central
References: 96-04-033
Keywords: C++, parse

John Mitchell <104316.1514@CompuServe.COM> writes:
>I want to parse C++ header files, and extract information about the
>contained classes and their interface. A yacc-able grammar for this
>type of problem ( or superset of it, as for compilation) would be a
>great help. I'm aware of a grammar for C++ 2.0 out there - is there a
>later version supporting templates?


Welcome to your worst nightmare! I have not been able to track down a
yacc-able grammar for 2 years. The one you mentioned about is very old
and would need a substantial amount of work to include templates.
There is a neat C++ grammar that is written in C/C++, hence portable
to any platform with a C/C++ compiler.

An in depth discussion currently underway about its update and
bugfixes. For your, purpose it should suffice. Check out
'' and join the fun.


Post a followup to this message

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