On Jan 30, 2010, at 3:48 AM, Oliver Zeigermann wrote: > As input.LT seems to return null values in case we are at the very > start/end of the node stream, I added this check which does the job > for me > > input.LT(-3) == null ? "" : ((Tree)input.LT(-3)).getText()+" "+ > input.LT(-2) == null ? "" : ((Tree)input.LT(-2)).getText()+" "+ > input.LT(-1) == null ? "" : ((Tree)input.LT(-1)).getText()+" >>>"+ > input.LT(1) == null ? "" : ((Tree)input.LT(1)).getText()+"<<< "+ > input.LT(2) == null ? "" : ((Tree)input.LT(2)).getText()+" "+ > input.LT(3) == null ? "" : ((Tree)input.LT(3)).getText();
oh. right. start is a problem. end is EOF so no problem. can u update the faq too? ;) Ter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address -- 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.
