Re: looking for a c++ -> c++ parser (Greg Lindahl)
19 Nov 1998 23:26:38 -0500

          From comp.compilers

Related articles
looking for a c++ -> c++ parser (1998-11-15)
Re: looking for a c++ -> c++ parser (1998-11-19)
Re: looking for a c++ -> c++ parser (Eric Marsden) (1998-11-19)
Re: looking for a c++ -> c++ parser (David Chase) (1998-11-24)
| List of all articles for this month |

From: (Greg Lindahl)
Newsgroups: comp.compilers
Date: 19 Nov 1998 23:26:38 -0500
Organization: a guest of Shadow Island Games
References: 98-11-088
Keywords: C++, tools

> [Parsing C++ is so painful, particularly in programs that use #define, that
> I expect that ad-hoc partial parsing would work better than full parsing.
> -John]

#define isn't a problem -- in this instance the writer didn't seem to
want to get human-readable source back, so you can just run the thing
through cpp first. Parsing C++ _is_ painful, but the EDG parser source
is available free for non-commercial use, and I heard (a while ago)
about a project by Kathy Lindlan <> to build
some stuff with the EDG parser which allows tool builders to do
interesting things to parsed C++ programs. Details are at:

I'm not sure if there is a tool which takes her IL and outputs C++,
but that part doesn't look hard.

-- greg

Post a followup to this message

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