[antlr-interest] astFactory is NULL

kyin20 kyin20 at yahoo.com
Wed May 14 13:15:47 PDT 2003


Hi,

I'm using antlr 2.7.2_03 and Eclipse antlr plug-in.
I'm encountering a strange problem. 

I compiled the antlr source codes and use the generated .class files 
rather than the jar file "antlrall.jar"
that has been built when running my program.

In my sql parser options, I've specified  "buildAST = true",
the generated code does have codes to generate AST.

But when I run the parser, astFactory is null, and caused a null 
pointer exception.

I have no idea where astFactory should be initialized. Can someone 
shed light on this?

Adding to the mystery is that if I add the "antlrall.jar" to my 
classpath and not use the antlr .class files I generated, then I can 
run my program successfully. 

Thanks for any help.

Keppel









 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list