[antlr-interest] ANTLR3 vcab import exception

Terence Parr parrt at cs.usfca.edu
Tue Oct 18 13:10:56 PDT 2005


On Oct 18, 2005, at 12:50 PM, Jim Idle wrote:

> Anyone got any thoughts on this (ANTLR 3 built from source code as  
> of Sunday evening, JDK 1.5 Update 5)
>
> problem reading token vocabulary file cmql.tokens:  
> java.lang.NullPointerException
> org.antlr.tool.AssignTokenTypesWalker.importTokenVocab(Unknown Source)
> org.antlr.tool.AssignTokenTypesWalker.option(Unknown Source)
> org.antlr.tool.AssignTokenTypesWalker.optionsSpec(Unknown Source)
> org.antlr.tool.AssignTokenTypesWalker.grammarSpec(Unknown Source)
> org.antlr.tool.AssignTokenTypesWalker.grammar(Unknown Source)
> org.antlr.tool.Grammar.setGrammarContent(Unknown Source)
> org.antlr.Tool.process(Unknown Source)
> org.antlr.Tool.main(Unknown Source)

I wonder why it says "unknown source"?  Perhaps 1.5 can't read  
old .class files completely?  That would be odd...if you can get me a  
line number i'll look it up ;)

Ter
>
> The cmql.tokens file is there and looks correct. If  I delete a  
> token in the file, then it tells me that there is a token sequence  
> error, so it is reading the tokens.
>
> if not then I guess I will start debugging from source code. But  
> just in case anyone has seen this before...
>
> Jim
>



More information about the antlr-interest mailing list