[antlr-interest] Inaccurate - FAQ - How do I rebuild ANTLR v3?

Kenny MacDermid kenny at kmdconsulting.ca
Thu Sep 6 13:04:58 PDT 2007


Hello,

I tried following the instructions on this wiki page using the 3.0.1 source
with no luck.

First error is that antlr-2 is not put in the classpath by ant. It's at a
known location in the lib directory, so it would be nice if this was done
for you.

Second junit is a build dependency but not included (or listed anywhere).
(This is where a build structure like maven really shines)

After adding them both to my path I am now getting:

compile:
    [mkdir] Created dir: /antlrSource/antlr-3.0.1/build/classes
  [myjavac] Compiling 126 source files to /antlrSource/antlr-3.0.1
/build/classes
  [myjavac] /antlrSource/antlr-3.0.1/codegen/ANTLRLexer.java:61: duplicate
class: org.antlr.tool.ANTLRLexer
....

It effects the following files:
/antlrSource/antlr-3.0.1/codegen/ANTLRLexer.java:61: duplicate class:
org.antlr.tool.ANTLRLexer
/antlrSource/antlr-3.0.1/codegen/ANTLRParser.java:72: duplicate class:
org.antlr.tool.ANTLRParser
/antlrSource/antlr-3.0.1/codegen/ANTLRTokenTypes.java:37: duplicate class:
org.antlr.tool.ANTLRTokenTypes
/antlrSource/antlr-3.0.1/codegen/ANTLRTreePrinter.java:52: duplicate class:
org.antlr.tool.ANTLRTreePrinter
/antlrSource/antlr-3.0.1/codegen/ANTLRTreePrinterTokenTypes.java:33:
duplicate class: org.antlr.tool.ANTLRTreePrinterTokenTypes
/antlrSource/antlr-3.0.1/codegen/AssignTokenTypesWalker.java:98: duplicate
class: org.antlr.tool.AssignTokenTypesWalker
/antlrSource/antlr-3.0.1/codegen/AssignTokenTypesWalkerTokenTypes.java:36:
duplicate class: org.antlr.tool.AssignTokenTypesWalkerTokenTypes
/antlrSource/antlr-3.0.1/codegen/CodeGenTreeWalker.java:59: duplicate class:
org.antlr.codegen.CodeGenTreeWalker
/antlrSource/antlr-3.0.1/codegen/CodeGenTreeWalkerTokenTypes.java:39:
duplicate class: org.antlr.codegen.CodeGenTreeWalkerTokenTypes
/antlrSource/antlr-3.0.1/codegen/DefineGrammarItemsWalker.java:47: duplicate
class: org.antlr.tool.DefineGrammarItemsWalker
/antlrSource/antlr-3.0.1/codegen/DefineGrammarItemsWalkerTokenTypes.java:34:
duplicate class: org.antlr.tool.DefineGrammarItemsWalkerTokenTypes
/antlrSource/antlr-3.0.1/codegen/TreeToNFAConverter.java:49: duplicate
class: org.antlr.tool.TreeToNFAConverter
/antlrSource/antlr-3.0.1/codegen/TreeToNFAConverterTokenTypes.java:35:
duplicate class: org.antlr.tool.TreeToNFAConverterTokenTypes

I haven't had a chance to figure out why yet.

Kenny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070906/27edd692/attachment.html 


More information about the antlr-interest mailing list