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
walther@59894
     1
(* Title:  Interpret/lucas-interpreter.sml
walther@59894
     2
   Author: Walther Neuper 2019
walther@59894
     3
   (c) due to copyright terms
walther@59894
     4
*)
walther@59894
     5
walther@59894
     6
signature METHOD =
walther@59894
     7
sig
walther@59895
     8
  type T = Meth_Def.T
walther@59903
     9
  val empty: T
walther@59903
    10
walther@59903
    11
  type id = Meth_Def.id
walther@59903
    12
  val id_empty: id
walther@59903
    13
  val id_to_string: id -> string
walther@59970
    14
walther@59970
    15
  val from_store: id -> T
walther@59970
    16
  val from_store': theory -> id -> T
walther@59894
    17
walther@59894
    18
(* ---- for tests only: shifted from below to remove the Warning "unused" at fun.def. --------- *)
walther@59895
    19
  (*NONE*)
walther@59894
    20
(*/-------------------------------------------------------- ! aktivate for Test_Isac BEGIN ---\* )
walther@59895
    21
  (*NONE*)
walther@59894
    22
( *\--- ! aktivate for Test_Isac END ----------------------------------------------------------/*)
walther@59894
    23
end
walther@59894
    24
walther@59894
    25
(**)
walther@59894
    26
structure Method(**): METHOD(**) =
walther@59894
    27
struct
walther@59894
    28
(**)
walther@59894
    29
walther@59895
    30
type T = Meth_Def.T;
walther@59903
    31
val empty = Meth_Def.empty;
walther@59903
    32
walther@59903
    33
type id = Meth_Def.id;
walther@59903
    34
val id_empty = Meth_Def.id_empty;
walther@59903
    35
val id_to_string = Meth_Def.id_to_string;
walther@59894
    36
walther@59970
    37
(* TODO: throws exn 'get_pbt not found: ' ... confusing !! take 'ketype' as an argument *)
walther@59970
    38
fun from_store metID = Store.get (get_mets ()) metID metID;
walther@59970
    39
fun from_store' thy metID = Store.get (KEStore_Elems.get_mets thy) metID metID;
walther@59970
    40
walther@59894
    41
(**)end(**)