Sunday, July 22, 2007

Frown: c2hs parser

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.

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.

Friday, July 20, 2007

Midi Lib

Copperbox revision 65.

Added SysEx and system-specific meta event to the event types.

The midiRead function has problems reading 'in the wild' midi files, so the next step would seem to be to add error handling so I can track where it is going wrong.

Thursday, July 19, 2007

Midi Lib

Copperbox revision 64.

Minor tidy up of Midi Lib. Removed field labels from the data types as they were wasting identifiers.

Midi Lib

Copperbox revision 63.

Added a library to read and write Midi files - quality is 'rough' but it does write and read the test file.

Needs Data.Binary from Hackage.

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.

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.

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?)

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).

Blog Archive

About Me

My photo
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.