[antlr-interest] [AST grammar] input null pointer exception

maulattu maulattu at yahoo.it
Wed Sep 17 07:23:53 PDT 2008


Doh!
Now it's ok and it works fine.
On chapter 3 of the book there isn't that function call as I can see, I found it also on http://www.antlr.org/wiki/display/ANTLR3/Tree+construction
Thank you Gavin



----- Messaggio originale -----
Da: Gavin Lambert <antlr at mirality.co.nz>
A: maulattu <maulattu at yahoo.it>; antlr-interest at antlr.org
Inviato: Mercoledì 17 settembre 2008, 8:15:40
Oggetto: Re: [antlr-interest] [AST grammar] input null pointer exception

At 02:00 17/09/2008, maulattu wrote:
>In particular, input.getTokenStream() returns null and I can't 
>understand why (it is in the "expr()" function)

Did you call setTokenStream in your driver code to pass the token 
stream over to the node stream?  It doesn't inherit it 
automatically...

__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080917/782378e2/attachment.html 


More information about the antlr-interest mailing list