[antlr-interest] getting C++ to work

Jim Idle jimi at temporal-wave.com
Tue Apr 27 17:18:31 PDT 2010


There is no Cpp target, use the C target and compile as C++ :-)

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Chris verBurg
> Sent: Tuesday, April 27, 2010 5:00 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] getting C++ to work
> 
> Hey guys,
> 
> I'm trying to get Antlr to generate a parser in C++, but I'm not having
> much
> luck:
> 
>   grammar MyParser;
>   options {
>     language="Cpp";
>   }
> 
> generates:
> 
>   error(100): src/MyParser.g:3:14: syntax error: antlr:
> src/MyfParser.g:3:14: unexpected token: "Cpp"
> 
> "C++" doesn't work either, though "C" does.
> 
> I'm using Antlr 3.2 and java 1.5.0_05, on linux.
> 
> Any ideas?
> 
> Thanks!!
> -Chris
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address





More information about the antlr-interest mailing list