src/Pure/context_position.ML
author wenzelm
Wed Jun 13 00:01:57 2007 +0200 (2007-06-13)
changeset 23354 a189707c1d76
child 24773 ec3a04e6f1a9
permissions -rw-r--r--
Context positions.
     1 (*  Title:      Pure/context_position.ML
     2     ID:         $Id$
     3     Author:     Makarius
     4 
     5 Context positions.
     6 *)
     7 
     8 signature CONTEXT_POSITION =
     9 sig
    10   val put: Position.T -> Proof.context -> Proof.context
    11   val get: Proof.context -> Position.T
    12   val str_of: Proof.context -> string
    13 end;
    14 
    15 structure ContextPosition: CONTEXT_POSITION =
    16 struct
    17 
    18 structure Data = ProofDataFun
    19 (
    20   type T = Position.T;
    21   fun init _ = Position.none;
    22 );
    23 
    24 val put = Data.put;
    25 val get = Data.get;
    26 val str_of = Position.str_of o get;
    27 
    28 end;