Berndl, Klaus | 1 Feb 2003 19:22
Picon

RE: [cedet-semantic] Parsing C++ typedefs with templates

>I investigated a little further and I think I found the problem.

>This is parsed correctly: foo<arg, urgs> mpfl;

>This isn't: foo<arg, const urgs> mpfl;

>The problem IMO is with template-type:

>template-type : CLASS symbol
> [Snip]

>This doesn't take into account that arguments for templates are
>allowed to be full type specifiers.

Yes, but there was some more to do............

I have checked in into v1p4 a new c.bnf, semantic-c.el, NEWS and
tests/template.cpp. Now we take into account what you mentioned,
Markus ;-)

I have tested the new template-parsing a lot and with very complex examples
(see tests/template.cpp) and all seems now working fine. I have also
checked the parser output with semantic-test-all-.... looks very good.
Now template-tokens contain much more useful informations!

Markus, please check it out and give me feedback if it works for you too!

BTW: A lot of thanks for your very valuable reports!

Ciao,
Klaus

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

Gmane