[antlr-interest] C++ compliance of antlr generated code

Kay Roepke kroepke at classdump.org
Sat Dec 30 18:27:10 PST 2006


On 29. Dec 2006, at 17:34 , sohail at taggedtype.net wrote:

> Quoting Maurizio de Pascale <mdepascale at dii.unisi.it>:
>
>> the C++ code generated by ANTLR (latest 2.7.X) uses lots of variables
>> starting with '_', which is however forbidden by the standard since
>> symbols starting with an underscore are reserved to the  
>> implementation.
>> I suggest taking care of this for the ANTLR 3 C++ target.
>
> From what I recall, symbols starting with _ are reserved in the  
> global namespace.

Hi!

We had a discussion about this over on antlr-dev a while ago. Please  
see my reply at
<http://antlr.org/pipermail/antlr-dev/2006-November/000729.html>  
for the gist
of it.

Ric has agreed that it doesn't appear to be a problem, just as Sohail  
said.
I don't think this will need to be changed.

cheers,

-k
-- 
Kay Röpke
http://classdump.org/






More information about the antlr-interest mailing list