On Mon, Sep 22, 2003 at 01:53:28PM -0500, Ken Williams wrote: > > On Monday, September 22, 2003, at 01:21 PM, Stas Bekman wrote: > > >Ken Williams wrote: > >>C::Scan may help: > >> http://search.cpan.org/author/HVDS/C-Scan-0.74/ > > > >We use it in mod_perl 2.0 (more like, used to use it), and it proved > >to be not-so-good with the apache 2.x source code. ExtUtils-XSBuilder > >[1] uses Parse::RecDescent which was reported to work much better. > >However C::Scan might do the job for your task. > > Would be nice if C::Scan could be improved and kept as a separate tool, > my sense is that XSBuilder isn't very separable if you just want to > scan C source and not build the XS bits.
I think it would be better to try to (find a volunteer to) separate out the parser from XSBuilder. That would be an ideal, but it would be useful to simply copy the C syntax defintion from XSBuilder into a new module (Parse::C?) without changing XSBuilder. That new module could be extended in the various ways Parse::RecDescent enables. Basically I think XSBuilder/Parse::RecDescent is a better foundation than C::Scan (which predates Parse::RecDescent). Tim.
