Sun Oct 30 11:16:41 EDT 2011


Seems that the toughest job is done.  Code generator is working.
Interesting thing to do next might be C code generation.

Is there an easy to use C prettyprinter for Haskell?
There is one[2] in Language.C[1].

In theory this just requires translation of (a subset of Term) to the
Language.C.Syntax.AST type[3].

To find out how to use this, it might be simplest to first parse some
C and see what it looks like, then try to recreate the syntax.
Starting from the docs/source itself is a bit too much..

[1] http://hackage.haskell.org/package/language-c
[2] http://haskell.org/packages/archive/language-c/0.4.2/doc/html/Language-C-Pretty.html
[3] http://hackage.haskell.org/packages/archive/language-c/0.4.2/doc/html/Language-C-Syntax-AST.html
[4] http://trac.sivity.net/language_c/
[5] http://trac.sivity.net/language_c/wiki/GettingStarted