src/Pure/context_position.ML
changeset 23354 a189707c1d76
child 24773 ec3a04e6f1a9
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/Pure/context_position.ML	Wed Jun 13 00:01:57 2007 +0200
     1.3 @@ -0,0 +1,28 @@
     1.4 +(*  Title:      Pure/context_position.ML
     1.5 +    ID:         $Id$
     1.6 +    Author:     Makarius
     1.7 +
     1.8 +Context positions.
     1.9 +*)
    1.10 +
    1.11 +signature CONTEXT_POSITION =
    1.12 +sig
    1.13 +  val put: Position.T -> Proof.context -> Proof.context
    1.14 +  val get: Proof.context -> Position.T
    1.15 +  val str_of: Proof.context -> string
    1.16 +end;
    1.17 +
    1.18 +structure ContextPosition: CONTEXT_POSITION =
    1.19 +struct
    1.20 +
    1.21 +structure Data = ProofDataFun
    1.22 +(
    1.23 +  type T = Position.T;
    1.24 +  fun init _ = Position.none;
    1.25 +);
    1.26 +
    1.27 +val put = Data.put;
    1.28 +val get = Data.get;
    1.29 +val str_of = Position.str_of o get;
    1.30 +
    1.31 +end;