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

Jim

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of Chris verBurg
> Sent: Tuesday, April 27, 2010 5:00 PM
> To: [email protected]
> 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




List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to