On Thu, Feb 26, 2009 at 8:06 PM, SSG JJV <[email protected]> wrote: > Yes. But David's parser outputs C++ parser. I need a Java Parser to validate > C++ language syntax. > Thanks
It looks as if LLVM now has capable and stable C++ support: LLVM includes "Front-ends for C and C++ based on the GCC 3.4 and 4.0.1 parsers. They support the ANSI-standard C and C++ languages to the same degree that GCC supports them. Additionally, many GCC extensions are supported" [1]. I've followed some of their progress and architecture and I believe it would be a good starting point. HTH, --Kaleb [1] http://llvm.org/Features.html > On Thu, Feb 26, 2009 at 8:18 PM, Granville Barnett > <[email protected]> wrote: >> >> Have you tried the grammar by David Wigg?? >> >> On Fri, Feb 27, 2009 at 11:34 AM, SSG JJV <[email protected]> >> wrote: >>> >>> Hi, >>> Is there a any ANTLR grammar in Java, that can be used to validate C++ >>> language syntax? >>> I tried Sun C/C++ parser mentioned under grammar list on antlr site. but >>> could not generate antlr parser for the grammar mentioned. >>> I got tons of errors. >>> Is there any documentation on how to use the above parser? >>> Thanks, >>> Suman >>> >>> 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 > > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
