[antlr-interest] C++ grammar for ANTLR v3 ?

Jim Idle jimi at temporal-wave.com
Wed Oct 7 11:39:21 PDT 2009


I think that the OP meant is there a set of grammars that parse C++, but are written for ANTLR v3 rather than v2? As far as I know, the answer is no. C++ is not the easiest thing to parse and it cannot be done purely with grammar.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Sam Harwell
> Sent: Wednesday, October 07, 2009 11:30 AM
> To: bahler at research.telcordia.com; antlr-interest at antlr.org
> Subject: Re: [antlr-interest] C++ grammar for ANTLR v3 ?
> 
> The only complete working grammar for ANTLR v3 written in ANTLR v3 is
> the set of grammars in my C# port, and they use the CSharp3 target. The
> C# port of the ANTLR tool uses these grammars internally for all its
> processing, so they are tested working. It would take a significant
> amount of work to port them to C++ due to the fact that they rely
> heavily on the rest of the ANTLR tool's code for processing the
> information gathered in parsing.
> 
> There is another ANTLR v3 grammar written in ANTLR v3 targeting Java (I
> believe), but I'm not sure what its status is. I do know it's not the
> primary grammar used in the Java version of the tool.
> 
> Sam
> 
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of Lisa Bahler
> Sent: Wednesday, October 07, 2009 9:19 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] C++ grammar for ANTLR v3 ?
> 
> I'm looking for a C++ grammar for ANTLR v3.  Does one exist?  If not
> yet, what is the status?
> 
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address





More information about the antlr-interest mailing list