Sunday, April 29, 2007
Alex / Frown
Added a new Alex template to copperbox/tools/alex_frown that has prettier error messages (at the expense of tracking more state).
Frown: c2hs parser
I have been working on a Frown version of the c2hs C Parser. This is the initial check-in.
The code compiles though the parser has no actions, so it does not build a parse tree. The lexer is also incomplete - white space is the most obvious omission. Getting the code to compile has been over 4 days work, so I'm commiting this draft now.
GHC is taxed by the code that Frown generates. In particular Frown's compact format will not compile even though the code is smaller - the absence of type signatures on such a large file makes trouble for GHC's type inferencing.
The code compiles though the parser has no actions, so it does not build a parse tree. The lexer is also incomplete - white space is the most obvious omission. Getting the code to compile has been over 4 days work, so I'm commiting this draft now.
GHC is taxed by the code that Frown generates. In particular Frown's compact format will not compile even though the code is smaller - the absence of type signatures on such a large file makes trouble for GHC's type inferencing.
Sunday, April 15, 2007
Saturday, April 7, 2007
Subscribe to:
Posts (Atom)
Blog Archive
About Me
- Stephen Tetley
- Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.