Generating x86 assembly with Haskell

code 4 November 2008 | 3 Comments

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 [...]

Tagged in , , ,