[cfe-dev] compatibility of the C++0x spec and LL(k) LR(k)

Douglas Gregor dgregor at apple.com
Wed Aug 31 18:25:19 PDT 2011


On Aug 31, 2011, at 6:09 PM, Carter Cheng wrote:

> Thanks Doug. I apologize if this is slightly off-topic- but my
> motivation in this case is to try to understand the context of the
> clang C++ parser design (if you knew where to find some of the
> relevant materials for this I would appreciate it- though perhaps you
> could send this to me directly if this place is inappropriate).


Clang uses a hand-written recursive-descent parser, because it is easy to maintain, is efficient, handles multiple dialects very well, and provides excellent error recovery. You can go check out the source code in lib/Parseā€¦ it's surprisingly easy to read (and modify) the parser code.

	- Doug



More information about the cfe-dev mailing list