Copperbox revision 67.
Added a reader monad interface to the pretty printer as per Language.Haskell.Pretty.
This will allow the pretty printer to have different indent and bracing styles.
Sunday, July 22, 2007
Saturday, July 21, 2007
Frown: c2hs parser
Copperbox revision 66.
Cosmetic updates to the pretty printers again. But I wanted to get a working version committed now as the next step is to try a reader monad version that can handle indent preferences, etc.
Cosmetic updates to the pretty printers again. But I wanted to get a working version committed now as the next step is to try a reader monad version that can handle indent preferences, etc.
Friday, July 20, 2007
Thursday, July 19, 2007
Tuesday, July 10, 2007
Applicative Packrat Parser
Copperbox revision 62.
Added the usual combinators (satisfy, char, anyChar, manyof aka many, manyone, literal) to the packrat parser.
PS. I rather suspect I am not handling the recursion properly and the parses backtrack when they shouldn't. This makes them plain backtracking parsers rather packrat parsers.
Added the usual combinators (satisfy, char, anyChar, manyof aka many, manyone, literal) to the packrat parser.
PS. I rather suspect I am not handling the recursion properly and the parses backtrack when they shouldn't. This makes them plain backtracking parsers rather packrat parsers.
Monday, July 9, 2007
Applicative Packrat Parser
Copperbox revision 61.
Updated the packrat parser so that it parses the example given in Bryan Ford's ICFP'02 paper.
Updated the packrat parser so that it parses the example given in Bryan Ford's ICFP'02 paper.
Sunday, July 8, 2007
Applicative Packrat Parser
Copperbox revision 60
Added an parser in the packrat style that uses Control.Applicative.
Hopefully the parser is genuinely a packrat parser (that's to say it memoizes results properly rather than uses backtracking), but I'm not sure it is fully lazy. The code is only an experiment so it might get deleted from the repository head at some point, but the nice thing about version control is that it will live on. (Forever?)
Added an parser in the packrat style that uses Control.Applicative.
Hopefully the parser is genuinely a packrat parser (that's to say it memoizes results properly rather than uses backtracking), but I'm not sure it is fully lazy. The code is only an experiment so it might get deleted from the repository head at some point, but the nice thing about version control is that it will live on. (Forever?)
Sunday, July 1, 2007
Frown: c2hs parser
Copperbox revision 59
Adding the new 'empty biased' pretty printer (show have gone in at revision 58).
Copperbox revision 58
New plain Haskell (not UUAG pretty printer) pretty printer that uses the new pretty printing combinators. The plain version is now as comprehensive as the UUAG version and supersedes it (I will remove UUAG version quite soon).
Adding the new 'empty biased' pretty printer (show have gone in at revision 58).
Copperbox revision 58
New plain Haskell (not UUAG pretty printer) pretty printer that uses the new pretty printing combinators. The plain version is now as comprehensive as the UUAG version and supersedes it (I will remove UUAG version quite soon).
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.