[antlr-interest] generating multiple files from a single input file

Arnulf Heller aheller at gmx.at
Tue Oct 14 10:57:43 PDT 2008


>
>I thought there was an example somewhere demonstrating writing out
>.c files together with .h files, but I can't find it at the moment.

Look at the ANTLR code generator (at least in the source distribution 
you can find it):

CodeGenerator.java
C.stg
CPP.stg

This is a quite good example how you can build .c and .h files at once.




More information about the antlr-interest mailing list