[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LPEG for C++
- From: David Manura <dm.lua@...>
- Date: Sat, 19 Sep 2009 14:31:57 -0400
On Fri, Sep 18, 2009 at 8:48 AM, Peter Cawley wrote:
> You might be interested in reusing some code I wrote recently. It is a
> Lua/LPEG creation to parse C++ source files, extract information, and
> then output it in wiki markup.
For comparison, there's another LPeg-based C tokenizer at . There
may be some issues using a C tokenizer as is on C++. For example,
'::' is a C++ only token. Peter's supports that (mine doesn't) though
doesn't appear to specially mark C++ keywords like 'try' and 'class'
Reliably parsing, not just lexing, C++ is no small feat. gccxml was
discussed previously on this list . See also . Using the xml
output option from Doxygen may be a fairly accessible solution that's