[Haskell-cafe] Writing a compiler in Hakell

Rouan van Dalen rvdalen at yahoo.co.uk
Wed May 6 02:07:25 EDT 2009

Hi everyone.

I am designing my own programming language.

I would like to know what is the best way to go about writing my compiler in haskell.
What are the tools available in haskell that can help with compiler construction?

I know about Happy.  Is that a good tool to use?

The compiler is intended for serious use and I would like it to be very efficient, maybe competing
with compilers written in C.  It should also be very easy to extend as the languoge grows.

Are there any good books that you can recommend on compiler construction in general and specific to haskell?

On another note, how is the operator + implemented in haskell?

is there a primitve (say #+) that is wrapped by the haskell operator +?
Maybe something like:

(+) :: a -> a -> a
v1 + v2 = #+ v1 v2

Thanks in advance



More information about the Haskell-Cafe mailing list