author | Walther Neuper <walther.neuper@jku.at> |
Wed, 22 Apr 2020 11:23:30 +0200 | |
changeset 59902 | e7910a62eaf2 |
parent 59892 | b8cfae027755 |
child 59903 | 5037ca1b112b |
permissions | -rw-r--r-- |
walther@59892 | 1 |
(* Title: BaseDefinitions/specification.sml |
walther@59882 | 2 |
Author: Walther Neuper |
walther@59882 | 3 |
(c) due to copyright terms |
walther@59882 | 4 |
|
walther@59891 | 5 |
|
walther@59891 | 6 |
*) |
walther@59891 | 7 |
signature SPECIFICATION = |
walther@59882 | 8 |
sig |
walther@59884 | 9 |
type metID |
walther@59884 | 10 |
type pblID |
walther@59884 | 11 |
type spec |
walther@59902 | 12 |
val to_string: string * string list * string list -> string |
walther@59884 | 13 |
val metID2str: string list -> string |
walther@59884 | 14 |
val e_pblID: pblID |
walther@59884 | 15 |
val e_metID: metID |
walther@59902 | 16 |
val empty: spec |
walther@59882 | 17 |
(* ---- for tests only: shifted from below to remove the Warning "unused" at fun.def. --------- *) |
walther@59882 | 18 |
(*NONE*) |
walther@59886 | 19 |
(*/-------------------------------------------------------- ! aktivate for Test_Isac BEGIN ---\* ) |
walther@59882 | 20 |
(*NONE*) |
walther@59886 | 21 |
( *\--- ! aktivate for Test_Isac END ----------------------------------------------------------/*) |
walther@59882 | 22 |
end |
walther@59882 | 23 |
|
walther@59882 | 24 |
(**) |
walther@59891 | 25 |
structure Spec(**): SPECIFICATION(**) = |
walther@59882 | 26 |
struct |
walther@59882 | 27 |
(**) |
walther@59882 | 28 |
|
walther@59884 | 29 |
(*the key into the hierarchy ob problems*) |
walther@59884 | 30 |
type pblID = string list; (* domID :: ...*) |
walther@59884 | 31 |
val e_pblID = ["e_pblID"]; |
walther@59884 | 32 |
|
walther@59884 | 33 |
(*the key into the hierarchy ob methods*) |
walther@59884 | 34 |
type metID = string list; |
walther@59884 | 35 |
type spec = ThyC.id * pblID * metID; |
walther@59902 | 36 |
fun to_string (dom, pbl, met) = |
walther@59884 | 37 |
"(" ^ quote dom ^ ", " ^ strs2str pbl ^ ", " ^ strs2str met ^ ")"; |
walther@59884 | 38 |
val e_metID = ["e_metID"]; |
walther@59884 | 39 |
val metID2str = strs2str; |
walther@59902 | 40 |
val empty = (ThyC.id_empty, e_pblID, e_metID); |
walther@59882 | 41 |
|
walther@59882 | 42 |
(**)end(**) |