[antlr-interest] cpp target
Jonathan Thomas
jonathan.thomas at ca.com
Mon Jul 16 17:19:13 PDT 2007
Depends how long you can hold on. Jim is working on a C++ target currently.
Until that is ready, then using your perl scripts etc on C would be the
way to go ... or even an ANTLR grammar for C to C++ :-)
Waldemar Sauer said the following on 17/07/2007 7:51 AM:
> How do I tell antlr v.3 to output to a .cpp file?
>
>
>
> I need to be able to use my C++ objects in my parser. I can get to where I
> need to go by renaming the .c file to .cpp, and doing the ``extern "C"''
> thing on each regular C include. So I think I can accomplish what I need
> with e.g. a Perl script, but I was wondering if there is maybe a better way
> to do this, e.g. some option switch somewhere. I can imagine that I will
> not be the only one that needs to cross the C/C++ barrier.
>
>
>
> - Waldemar
>
>
>
>
>
More information about the antlr-interest
mailing list