doc-src/Tutorial/CodeGen/comp
author paulson
Mon, 04 Sep 2000 10:24:55 +0200
changeset 9824 c6eee0626d28
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Converting HOL/ex/Primes.thy to new style, removing Primes.ML

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