Re: C++ grammar for Java?

Rob Duncan <rob@aimnet.com>
8 Oct 1997 00:44:05 -0400

          From comp.compilers

Related articles
C++ grammar for Java? cristofo@irst.itc.it (Luca Cristoforetti) (1997-10-03)
Re: C++ grammar for Java? sreeni@csc.albany.edu (1997-10-08)
Re: C++ grammar for Java? rob@aimnet.com (Rob Duncan) (1997-10-08)
Re: C++ grammar for Java? jlilley@empathy.com (John Lilley) (1997-10-08)
| List of all articles for this month |
From: Rob Duncan <rob@aimnet.com>
Newsgroups: comp.compilers,comp.compilers.tools.pccts
Date: 8 Oct 1997 00:44:05 -0400
Organization: Aimnet Information Services
References: 97-10-025
Keywords: C++, Java, parse

Luca Cristoforetti <cristofo@irst.itc.it> writes:


> 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.


JavaCC comes with C++, C, Java, HTML, IDL, and a bunch of other
grammars. You can download it all from http://www.suntest.com/JavaCC.


JavaCC is the Java Compiler Compiler, an LL(k) parser/lexer
generator. It comes with JJTree, a parse tree generator.


Rob.
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.