[antlr-interest] astFactory is NULL
Ney, Richard
richard.ney at aspect.com
Wed May 14 14:03:42 PDT 2003
Keppel,
I'll ask you the obvious, are you sure there wasn't an error parsing the
grammar? Since a parser/lexer error will cause a null AST.
-Richard
-----Original Message-----
From: kyin20 [mailto:kyin20 at yahoo.com]
Sent: Wednesday, May 14, 2003 1:16 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] astFactory is NULL
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/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list