Granville Barnett granvillebarnett at googlemail.com
Sat Jul 11 13:27:37 PDT 2009

Chris, I'm not sure how good this is, but there does exist a C++ grammar for
ANTLR that is pretty actively maintained by Sun Microsystems -


2009/7/11 Chris Lattner <clattner at apple.com>

> On Jul 11, 2009, at 12:40 PM, Vikram S. Adve wrote:
> > We are looking for an open source C++ parser other than g++ if
> > possible.  Clang would be great but its C++ support is still some
> > way away and we need something that works or nearly works now.  Does
> > anyone have any experience with ANTLR for parsing C++ and for
> > extending their C++ parser?  Any other feedback on ANTLR in general
> > would be welcome too.  Thanks,
> You need a lot more than a traditional parser to parse c++, you have
> to do full template instantiation, partial template specialization etc
> just to be able to correctly parse it.  The "best answer" if you need
> something ASAP is to use Elsa.
> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090711/77562be7/attachment.html>

More information about the llvm-dev mailing list