ANTLR/JavaCC Java 1.5 grammar

=?ISO-8859-15?Q?Andreas_H=F6fer?= <>
29 Mar 2006 18:52:08 -0500

          From comp.compilers

Related articles
ANTLR/JavaCC Java 1.5 grammar (=?ISO-8859-15?Q?Andreas_H=F6fer?=) (2006-03-29)
| List of all articles for this month |

From: =?ISO-8859-15?Q?Andreas_H=F6fer?= <>
Newsgroups: comp.compilers
Date: 29 Mar 2006 18:52:08 -0500
Organization: University of Karlsruhe, Germany
Keywords: Java, PCCTS, question
Posted-Date: 29 Mar 2006 18:52:08 EST

Does anyone know a Java 1.5 grammar for

a) ANTLR, which generates AST-Nodes that have start and end-lines


b) A error free grammar for JavaCC, which creates the AST and a Visitor.

I've tried the JDK1_5grammar & AST and from the javacc
grammar repository
but ran into problems with both. The first grammar generates a
JavaParser, that calls methods like SimpleNode.addSpecial(..), which do
not exist in the generated code, the second is obviously not made for
AST generation.

Any help would be appreciated. Thanks.


Post a followup to this message

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