I'm using Antlr 3.1 with the Java backend, and generating Antlr-style abstract syntax trees. When I look at these trees I find that getTokenStartIndex (and StopIndex) are always set to -1. I was expecting either the parser to emit calls to setTokenStartIndex, or some code in addChild to call this method whenever a new child was added. But the parser doesn't seem to call this method, and adding a child doesn't seem to update the value either. So where does the code to set the start index of a compound tree get called? Is there some post-processing method I should be calling to set this, or some flag to tell the parser to generate such calls?
Thanks, Kevin --~--~---------~--~----~------------~-------~--~----~ 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
