doc-src/Tutorial/CodeGen/comp
author paulson
Thu, 26 Aug 1999 11:34:17 +0200
changeset 7360 7d3136b9af08
parent 5377 efb799c5ed3c
permissions -rw-r--r--
more Join rules including AC-rules

consts comp :: ('a,'v) expr => (('a,'v) instr) list
primrec
"comp (Cex v)       = [Const v]"
"comp (Vex a)       = [Load a]"
"comp (Bex f e1 e2) = (comp e2) @ (comp e1) @ [Apply f]"