On Fri, Oct 1, 2010 at 7:51 PM, vijay e <[email protected]> wrote: > Thanks for ur reply, > Ya i followed ur idea, but the problem i am getting in using filter is , > when i set the filter as true, my common token stream contains only the > tokens of my interst, , i can do all modifications in those tokens only > ,but, how can i make those token changes reflect in my original file with > all the other non intersted tokens untouched
Every CommonToken has the following methods: int getLine () int getCharPositionInLine () which should give you enough information to modify the original source file. Bart. 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.
