On Fri, 14 Mar 2008 19:25:50 -0700,ymuntyan wrote:
What makes me doubt about it is that all yacc-like parsers I looked
at will parse that line inside func() as
outer-type-A outer-type-A
You should ask this question in a yacc newsgroup instead.
Well, I figured it out. The problem was over-optimistic people who claim
that simple if-typedef-then-typename trick will solve the typedef-name
vs identifier issue. And gcc's yacc grammar indeed has a load of stuff
to solve this issue.
Not sure why I would ask a question about C grammar in a yacc newsgroup
though ;)
What you doubt about is your tool, yacc, not the C language itself. You
mentioned you know the language syntax is correct. And here only discuss
the standard C language, neither its extensions nor any implementions.
I think gnu.gcc.help will be much more appropriate to discuss your
problem, or any other yacc groups which I don't know.
--
Hi, I'm a .signature virus, please copy/paste me to help me spread
all over the world.