doc-src/Tutorial/CodeGen/comp
author wenzelm
Tue, 29 Aug 2000 20:12:35 +0200
changeset 9728 1546ad1c7839
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added antiquotation 'name' and option 'indent';

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]"