[antlr-interest] Help with compile errors in generated source

jared.bunting at peachjean.com jared.bunting at peachjean.com
Fri Jul 31 17:00:52 PDT 2009


Try using groupId org.antlr - the maven plugin is now hosted by the antlr project and the codehaus one is obsolete.

-Jared
Sent via BlackBerry by AT&T

-----Original Message-----
From: hanasaki jiji <hanasaki at gmail.com>

Date: Fri, 31 Jul 2009 17:20:54 
To: <antlr-interest at antlr.org>
Subject: [antlr-interest] Help with compile errors in generated source


Hello all... I plugged antlr into maven and ran in netbeans 6.7 and
the source produced is generating compile errors as below.  Any
thoughts as to what is the cause and resolution?  The grammar is the
JSON grammar downloaded from the antlr site.

Thanks,

plugin in maven
           <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>antlr3-maven-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>antlr</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

///
Compiling 3 source files to ....../parser/target/classes
[ERROR]Mojo:
[ERROR]    org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
[ERROR]FAILED for project:
[ERROR]    com.mycompany:parserHTTP:jar:1.0-SNAPSHOT
[ERROR]Reason:
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[97,12]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[142,12]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[211,20]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[235,25]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[277,65]
cannot find symbol
[ERROR]symbol  : method next()
[ERROR]location: class org.antlr.runtime.tree.RewriteRuleSubtreeStream
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[342,12]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[363,54]
cannot find symbol
[ERROR]symbol  : method next()
[ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[364,53]
cannot find symbol
[ERROR]symbol  : method next()
[ERROR]location: class org.antlr.runtime.tree.RewriteRuleSubtreeStream
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[427,12]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[451,17]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[489,57]
cannot find symbol
[ERROR]symbol  : method next()
[ERROR]location: class org.antlr.runtime.tree.RewriteRuleSubtreeStream
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[628,62]
cannot find symbol
[ERROR]symbol  : method next()
[ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[664,63]
cannot find symbol
[ERROR]symbol  : method next()
[ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[700,62]
cannot find symbol
[ERROR]symbol  : method next()
[ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[718,20]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONParser.java:[731,20]
cannot find symbol
[ERROR]symbol  : variable _fsp
[ERROR]location: class org.xerial.json.impl.JSONParser
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[66,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[84,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[102,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[120,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[138,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[156,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[191,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[210,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[229,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[723,13]
cannot find symbol
[ERROR]symbol  : variable channel
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[727,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[771,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[789,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer
[ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java:[859,16]
cannot find symbol
[ERROR]symbol  : variable type
[ERROR]location: class org.xerial.json.impl.JSONLexer

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address


More information about the antlr-interest mailing list