[antlr-interest] C++ & JAVA code in the same grammar file?
Micheal J
open.zone at virgin.net
Sun Mar 26 03:42:06 PST 2006
Serach the archives for Bogdan Mitu's annotation tool. Someone also did an
updated version of it a coupla years back.
Micheal
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org
> [mailto:antlr-interest-bounces at antlr.org] On Behalf Of John Williams
> Sent: 25 March 2006 19:17
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] C++ & JAVA code in the same grammar file?
>
>
> The project I am working on requires the parser to be
> generated in JAVA and C++.
> What I would like to do is to use one grammar file and
> include my C++ and JAVA
> code in it. Is there any way that I can ask ANTLR to use the
> included JAVA code
> when I specify language="java" and the included C++ code when
> I specify
> language="Cpp"? It's a pity you can't tag the code with the
> language ie:
>
> C++ { ...}
> or java { ...}
>
>
> Thanks for any help.
>
> John
>
More information about the antlr-interest
mailing list