doc-src/Tutorial/CodeGen/comp
author wenzelm
Wed, 20 Oct 1999 11:05:06 +0200
changeset 7886 8fa551e22e52
parent 5377 efb799c5ed3c
permissions -rw-r--r--
the settings environment is now statically scoped; tuned;

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