Tuesday, May 29, 2007

Text.Diff

Copperbox revision 51.

Updated the udiff parser. Previously it used the Parsec function reserved for hunk markers. This was inadvertently causing end-of-lines to be consumed, not cool on a line based parser.

Sunday, May 27, 2007

Text.Diff

Copperbox revision 50.

Added copyright and license notices to Text.Diff.

Wednesday, May 23, 2007

Frown: c2hs parser

Copperbox revision 49.

Ahem, __attribute__ had been missing as a token from the lexer so attributes wouldn't parse - now corrected.

Added initial support for pretty printing attributes on structs and enums, though it looks like this is incorrect. I think enums and structs can have prefix and suffix attributes, currently they attributes are only printed in prefix position.

Tuesday, May 22, 2007

Frown: c2hs parser

Copperbox revision 48.

Improved the handling of attribute specifiers in CDecl's - decls can have attributes specs in prefix and suffix positions so now they are separated accordingly.

By the way, yesterday I felt like it was time for an announcement
http://www.haskell.org/pipermail/libraries/2007-May/007537.html

Sunday, May 20, 2007

Text.Diff

Copperbox revision 45.

Added a library for reading and creating diff files in the unified format.

In the directory libs/hsdiff.

Frown: c2hs parser

Copperbox revision 44.

Some improvements to the pretty print, plus added initial support for GCC attributes. There is still going to be quite a bit of work to support attributes, some lists seemingly have their elements attributed which might mean the elements will have to be tupled.

Saturday, May 19, 2007

Frown: c2hs parser

Copperbox revision 43 - Fixed 'typo' in the Frown parser where enterScope and leaveScope actions were on the wrong productions. Improved the pretty printing quite a bit though there is still much to do.

Sunday, May 13, 2007

Frown: c2hs parser

Copperbox revision 40.

Added UUAG attribute grammar support. Because we start with Haskell datatypes the UUAG support is a little bit convoluted (as it needs wrappers over the datatypes), but it is certainly workable.

Started a new AG-based pretty printer for the C syntax.

Frown: c2hs parser

Copperbox revision 39 - added Haddock comment formatting to the Language.C modules

Saturday, May 12, 2007

Frown: c2hs parser

Copperbox revision 38 - the Frown version now has the proper typedef from the Happy original, and the typedef.i test file in the C2Hs distribution now parses.

Frown: c2hs parser

Revision 36 - Added expected option to the parser, so that it reports expected tokens on parse failure. Changed the directory layout of the dependent taken from C2Hs so that they resemble Language.Haskell from the hierarchical libraries. Now in the folder:

http://copperbox.googlecode.com/svn/trunk/tools/LanguageC/

Wednesday, May 9, 2007

Frown: c2hs parser

(Copperbox - Revision 34) - Restored attrs to the C abstract syntax tree. This makes the frown version pretty much equivalent to the Happy original. Of course there may be errors tucked away, and the lexer is still minimal...

Frown: c2hs parser

Typedef handling added.

I have added in the typedef handling from the original Happy parser - at present I have not added the shadowing that was in the original.

copperbox/tools/c2hs_frown revision 30.

Frown: c2hs parser

The Frown parser currently doesn't handle typdefs. As a prelude to adding them I've changed the hand rolled Alex monad into and ErrorT / State monad using the hierarchical libraries.

Sunday, May 6, 2007

Frown: c2hs parser

The Frown version of the c2hs parser now works (thats to say it works as far as it has been tested).

In tools directory of the Copperbox project - revision 28.

http://copperbox.googlecode.com/svn/trunk/tools/c2hs_frown/

Frown: c2hs parser

Correction - now all productions really do have actions, though parsing declarators has a bug that needs tracking down.

Saturday, May 5, 2007

Frown: c2hs parser

Updated the parser - now all actions are implemented.

The lexer has been updated, though it is still very much demo quality.

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.