src/Tools/isac/MathEngBasic/method.sml
author Walther Neuper <walther.neuper@jku.at>
Tue, 12 May 2020 17:42:29 +0200
changeset 59970 ab1c25c0339a
parent 59903 5037ca1b112b
child 59973 8a46c2e7c27a
permissions -rw-r--r--
shift code from struct.Specify to appropriate locations
     1 (* Title:  Interpret/lucas-interpreter.sml
     2    Author: Walther Neuper 2019
     3    (c) due to copyright terms
     4 *)
     5 
     6 signature METHOD =
     7 sig
     8   type T = Meth_Def.T
     9   val empty: T
    10 
    11   type id = Meth_Def.id
    12   val id_empty: id
    13   val id_to_string: id -> string
    14 
    15   val from_store: id -> T
    16   val from_store': theory -> id -> T
    17 
    18 (* ---- for tests only: shifted from below to remove the Warning "unused" at fun.def. --------- *)
    19   (*NONE*)
    20 (*/-------------------------------------------------------- ! aktivate for Test_Isac BEGIN ---\* )
    21   (*NONE*)
    22 ( *\--- ! aktivate for Test_Isac END ----------------------------------------------------------/*)
    23 end
    24 
    25 (**)
    26 structure Method(**): METHOD(**) =
    27 struct
    28 (**)
    29 
    30 type T = Meth_Def.T;
    31 val empty = Meth_Def.empty;
    32 
    33 type id = Meth_Def.id;
    34 val id_empty = Meth_Def.id_empty;
    35 val id_to_string = Meth_Def.id_to_string;
    36 
    37 (* TODO: throws exn 'get_pbt not found: ' ... confusing !! take 'ketype' as an argument *)
    38 fun from_store metID = Store.get (get_mets ()) metID metID;
    39 fun from_store' thy metID = Store.get (KEStore_Elems.get_mets thy) metID metID;
    40 
    41 (**)end(**)