kelan has asked for the wisdom of the Perl Monks concerning the following question:

I've started playing around with Parse::RecDescent and I was wondering if there is some place that already has a bunch of grammars for different programming languages available for download and use. A C or C++ grammar, in particular, would be nice. Googling turns up results mostly just talking about RecDescent itself. Thanks in advance.

kelan


Perl6 Grammar Student

Replies are listed 'Best First'.
•Re: Available RecDescent Grammars?
by merlyn (Sage) on Mar 06, 2003 at 15:24 UTC
Re: Available RecDescent Grammars?
by castaway (Parson) on Mar 06, 2003 at 15:59 UTC
    If you can't find some directly for Parse RecDescent, try looking for BNF notational grammars, the syntax is not quite the same, but they can be (mostly) easily converted.
    Googling for '+BNF +"C++"' turns up this for example.

    C.

Re: Available RecDescent Grammars?
by hossman (Prior) on Mar 06, 2003 at 23:36 UTC