doc-src/IsarAdvanced/Codegen/Thy/examples/dirty_set.ML
author paulson
Tue, 28 Nov 2006 16:19:01 +0100
changeset 21573 8a7a68c0096c
parent 21452 f825e0b4d566
child 21993 4b802a9e0738
permissions -rw-r--r--
Removed the references for counting combinators. Instead they are counted in actual clauses.

structure ROOT = 
struct

structure Nat = 
struct

datatype nat = Zero_nat | Suc of nat;

end; (*struct Nat*)

structure Codegen = 
struct

val dummy_set : (Nat.nat -> Nat.nat) list = Nat.Suc :: [];

val foobar_set : Nat.nat list =
  Nat.Zero_nat ::
    (Nat.Suc Nat.Zero_nat :: (Nat.Suc (Nat.Suc Nat.Zero_nat) :: []));

end; (*struct Codegen*)

end; (*struct ROOT*)