[antlr-interest] Best Practices for Migrating Antlr 2.7.7 to 3.4
    Paul De La Musica 
    paul.delamusica at gmail.com
       
    Wed Feb 22 10:36:06 PST 2012
    
    
  
Hi,
We are trying to migrate a script.g file fron V2.7.7 to V3.4.
A quick trial on the v2v3 conversion utility doesn't seem to work (see
error below).
Is the best way just to go through the 2.7.7 *.g file line by line?
Thanks,
Paul
>java -cp ./;../antlr-3.4-complete.jar v3me -combined script.g
Exception in thread "main" java.lang.NoSuchFieldError: type
        at ANTLRLexer.mT45(ANTLRLexer.java:85)
        at ANTLRLexer.mTokens(ANTLRLexer.java:2801)
        at org.antlr.runtime.Lexer.nextToken(Lexer.java:89)
        at
org.antlr.runtime.BufferedTokenStream.fetch(BufferedTokenStream.java:133)
        at
org.antlr.runtime.BufferedTokenStream.sync(BufferedTokenStream.java:127)
        at
org.antlr.runtime.CommonTokenStream.setup(CommonTokenStream.java:132)
        at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:91)
        at org.antlr.runtime.BufferedTokenStream.LA
(BufferedTokenStream.java:162)
        at ANTLRParser.antlrGrammar(ANTLRParser.java:124)
        at v3me.main(v3me.java:25)
    
    
More information about the antlr-interest
mailing list