Related articles |
---|
ANTLR/JavaCC Java 1.5 grammar ahoefer@ipd.uni-karlsruhe.de (=?ISO-8859-15?Q?Andreas_H=F6fer?=) (2006-03-29) |
From: | =?ISO-8859-15?Q?Andreas_H=F6fer?= <ahoefer@ipd.uni-karlsruhe.de> |
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
or
b) A error free grammar for JavaCC, which creates the AST and a Visitor.
I've tried the JDK1_5grammar & AST and Java1.5.zip from the javacc
grammar repository
(https://javacc.dev.java.net/servlets/ProjectDocumentList?folderID=110)
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.
Andreas
Return to the
comp.compilers page.
Search the
comp.compilers archives again.