Parsing C++ Declarations

"HalfWayMan" <>
18 Mar 2005 00:47:53 -0500

          From comp.compilers

Related articles
Parsing C++ Declarations (HalfWayMan) (2005-03-18)
Re: Parsing C++ Declarations (Brian Inglis) (2005-03-20)
Re: Parsing C++ Declarations (DrDiettrich) (2005-03-20)
| List of all articles for this month |

From: "HalfWayMan" <>
Newsgroups: comp.compilers
Date: 18 Mar 2005 00:47:53 -0500
Keywords: C, C++, parse, question
Posted-Date: 18 Mar 2005 00:47:53 EST

I have been writing compilers for some time now, but one thing that
always seems to bug me is parsing of C and C++ declarations. Perhaps
it's not the parsing that I have the problem with, more the
representation of the declaration afterwards. In a current project I
am representing declarations as a list of either specifiers or
declarators. However, this leads to problems and holes in type
comparisons and conversion. I was wondering if any of you knew of an
elegent way of representing this information.

Perhaps I'm doing it all wrong. It would be a shame.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.