New C++ Parser

Steinar Bang sb@metis.no
Sat Oct 28 06:11:00 GMT 2000


>>>>> Mark Mitchell <mark@codesourcery.com>:

>>>>> "Robert" == Robert Dewar <dewar@gnat.com> writes:

>> Mark, just to clarify, when you say "recursive descent" parser, do
>> you mean a hand written parser, or a table driven LL1 grammar
>> parser. I am just assuming the first, but some of the questions
>> about "reusing the grammar" puzzled me.

> I mean a hand-written parser.

Have you given ANTLR2 a look?
	< http://www.antlr.org/ >

I have used its predecessor PCCTS a lot, and have been quite happy
with it (even though the C++ it generates is pretty old and clumsy by
today's standards (adapted to the strangenesses of older compilers)).


More information about the Gcc mailing list