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

Gavin Lambert antlr at mirality.co.nz
Tue Sep 16 23:15:40 PDT 2008


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...



More information about the antlr-interest mailing list