|C++ grammar for Java? email@example.com (Luca Cristoforetti) (1997-10-03)|
|Re: C++ grammar for Java? firstname.lastname@example.org (1997-10-08)|
|Re: C++ grammar for Java? email@example.com (Rob Duncan) (1997-10-08)|
|Re: C++ grammar for Java? firstname.lastname@example.org (John Lilley) (1997-10-08)|
|From:||email@example.com (Sreenivasa Rao Viswanadha)|
|Date:||8 Oct 1997 00:36:06 -0400|
|Organization:||The University at Albany|
Luca Cristoforetti <firstname.lastname@example.org> wrote:
>I'm a student and I'm looking for a C++ grammar written in CUP and
>JLex or ANTLR 2.xx. I have to do an AST for a C++ program so I wonder if
>something similar is already done.
Look at JavaCC - an LL(K) tree/parser/lexer generator for Java.
it has a full C++ grammar (sans preprocessor). It also has an AST building
tool called jjtree using which you can get AST's directly from a grammar
description. The webpage has all the details.
Return to the
Search the comp.compilers archives again.