[EMAIL PROTECTED] schrieb am 21.10.2008 12:12:42: > > Hello, > > I'd like to further process some of ANTLR's output (e.g. the > contents of the .tokens file). > > Would it be possible to submit a string template to ANTLR that is > called during the generation process ?
You might also consider writing a backend for ANTLR. As ANTLR parses a grammar file, it builds up internal data structures which are subsequently handled to the string templates of the target language. These data structures do have complete knowledge of you grammar because they are used to build the parser. There is an article on the wiki which describes how to build a backend. You are in the lucky situation that you don't need to write the runtime thus it should be pretty easy to do that. > > Freundliche Grüße / Best Regards > Lars von Wedel > _________________________________________ --~--~---------~--~----~------------~-------~--~----~ 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
