[C2hs] Re: [Gtk2hs-devel] A new lexer/parser for c2hs

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Jun 7 20:57:34 EDT 2005

On Wed, 2005-06-01 at 22:16 +1000, Manuel M T Chakravarty wrote:
> Sounds good to me.

You can review the cleaned up versions of the lexer and parser here:

And they are in the version of c2hs included in the Gtk2Hs 0.9.8 release
for easy comparison it includes both the old and new parser (selectable
with --old-parser) and an extra --dump type "ast" which dumps the AST
after parsing (but before the name analysis).


> Duncan Coutts:
> > After all that when we're confident it's working correctly, we can tidy
> > our c2hs fork up be removing the old lexer & parser and send patches for
> > the mainline c2hs.
> > 
> > Currently, on my machine the two variants:
> > $ c2hs +RTS -M380m -RTS --precomp=gtk.precomp.old-parser --old-parser gtk/gtk.h
> > $ c2hs +RTS  -M80m -RTS --precomp=gtk.precomp.new-parser              gtk/gtk.h
> > 
> > produce exactly the same output. :-)

More information about the C2hs mailing list