[cfe-dev] Writing a tentative parser for C++0x attributes

Argyrios Kyrtzidis kyrtzidis at apple.com
Mon Aug 10 16:41:35 PDT 2009


(Re-added cfe-dev)

On Aug 10, 2009, at 2:45 PM, Sean Hunt wrote:

> On Mon, Aug 10, 2009 at 3:15 PM, Argyrios Kyrtzidis<kyrtzidis at apple.com 
> > wrote:
>> Can you post a patch of what you were trying ? I assume you can  
>> parse and
>> create attributes and it's only a matter of fixing the  
>> disambiguation, right
>> ?
> I'm not on the computer with the code, at the minute. I'll make a
> patch as soon as I can. I have attribute parsing down; the only
> problem is the dismabiguation, yes.
>
>> I think we need an attribute annotation token that will cache the  
>> parsed
>> attribute.
>>
>> -Argiris
>>
>
> That might work; can someone explain to me exactly how this would be
> implemented?

I looked at the spec and an annotation token is not needed, we can  
recognise that there is an attribute in the disambiguation parser and
just skip the tokens.

We can look into the details once you have the patch available.

-Argiris



More information about the cfe-dev mailing list