[...] > -> FOO["bar"] > Copy existing token FOO but give it "bar" as text, or create > imaginary token FOO with "bar" as text and no context.
OK, I looked at the overload set of the Java API and this is indeed in there: Object create (int tokenType, Token fromToken); Object create (int tokenType, Token fromToken, String text); Object create (int tokenType, String text); However, as I said before, this is not what is explained in the book and, as I'm programming against the C target, this is what I used at first to reason from. It does not even mention the ability to set only the text of a node. Thanks for taking the time to explain me all of this Sven List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/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 -~----------~----~----~----~------~----~------~--~---
