Re: [Haskell-cafe] parsing c

2008-02-25 Thread Duncan Coutts
On Mon, 2008-02-25 at 03:06 +0100, Bertram Felgenhauer wrote: > Evan Martin wrote: > > So two questions: Is there an alternative C-parsing library? Has > > anyone looked into librarifying c2hs's parser? > > I have split c2hs into three packages once, the remains of CTK > that it uses, the C pars

Re: [Haskell-cafe] parsing c

2008-02-24 Thread Bertram Felgenhauer
Evan Martin wrote: > So two questions: Is there an alternative C-parsing library? Has > anyone looked into librarifying c2hs's parser? I have split c2hs into three packages once, the remains of CTK that it uses, the C parser and pretty printer, and c2hs itself. (I also tried to give the modules m

Re: [Haskell-cafe] parsing c

2008-02-24 Thread Adam Langley
On Sun, Feb 24, 2008 at 4:08 PM, Evan Martin <[EMAIL PROTECTED]> wrote: > So two questions: Is there an alternative C-parsing library? You could use gcc-xml[1] with one of the various XML parsers. [1] http://www.gccxml.org/HTML/Index.html -- Adam Langley [EMAIL PROTECTED] http://www.imperialvi

[Haskell-cafe] parsing c

2008-02-24 Thread Evan Martin
I'd like to parse some C headers for a toy project. It seems like c2hs probably has the functionality I want, but it's not packaged up as a library. So two questions: Is there an alternative C-parsing library? Has anyone looked into librarifying c2hs's parser?