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 <[EMAIL PROTECTED]>
A: maulattu <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
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 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address

Reply via email to