Generating x86 assembly with Haskell
A quick and dirty example: data Exp = Lit Int — literal value | Call String Exp — calling a function | Bin BinOp Exp Exp — binary operations | Param — the parameter deriving (Show,Eq) data Function = Func String Exp — a function has a name and expression data BinOp = Add [...]
