[antlr-interest] How to do preprocessing in antlr v4?
Martin d'Anjou
martin.danjou14 at gmail.com
Sun Nov 18 05:56:53 PST 2012
On 12-11-18 06:18 AM, Mike Lischke wrote:
>
> In 2004 I created a project to convert Windows resource files (.rc, which share many aspects with C/C++ header files) to XML. I used ANTLR (2.7 at that time) to generate lexer and parsers (the project is completely written in Java). My approach was to use a special input stream that does the preprocessing, so there is no need to write the preprocessed input to a separate file. So the chain is input->preprocessor->lexer->parser.
>
Hello Mike,
I am studying your code. Thank you for sharing.
Martin
More information about the antlr-interest
mailing list