[antlr-interest] Newbie question, translator

Jay Philoon JPhiloon at penbaysolutions.com
Wed Apr 28 12:19:52 PDT 2010


It seems that the answer to my question would be obvious, but I don't know language composition or ANTLR very well.  And I haven't yet read the book.

I'm trying to write a translator that will convert a date string to an alternative format, but only when the date is in a certain, specific context.  That is, I only know the date string should be converted once I get to a rule, and by then the date term is several nodes down in the tree.   How can I go about changing the date text from within the rule?

Thanks much.


________________________________
CONFIDENTIALITY NOTICE:
This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please do not read, disclose, reproduce, distribute, disseminate or otherwise use this transmission, but contact the sender by reply e-mail and destroy all copies of the message and its attachments.


More information about the antlr-interest mailing list