Changeset 11215 for trunk/CspCASL/Trans_Consts.hs
- Timestamp:
- 05.01.2009 15:46:06 (11 months ago)
- Files:
-
- 1 modified
-
trunk/CspCASL/Trans_Consts.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CspCASL/Trans_Consts.hs
r10619 r11215 19 19 20 20 import CASL.AS_Basic_CASL 21 import CspCASL.AS_CspCASL_Process (PROCESS_NAME) 21 22 import Isabelle.IsaConsts 22 23 import Isabelle.IsaSign 24 import Isabelle.Translate(showIsaTypeT) 23 25 26 -- Name for the PreAlphabet 27 preAlphabetS :: String 28 preAlphabetS = "PreAlphabet" 29 30 -- Type for the PreAlphabet 31 preAlphabetType :: Typ 32 preAlphabetType = Type {typeId = preAlphabetS, 33 typeSort = [], 34 typeArgs =[]} 35 36 -- Name for the Alphabet 24 37 alphabetS :: String 25 38 alphabetS = "Alphabet" 26 39 40 -- Type for the Alphabet 41 alphabetType :: Typ 42 alphabetType = Type {typeId = alphabetS, 43 typeSort = [], 44 typeArgs =[]} 45 46 -- Name for IsabelleHOL quot type 47 quotS :: String 48 quotS = "quot" 49 50 -- Type for preAlphabet quot 51 preAlphabetQuotType :: Typ 52 preAlphabetQuotType = Type {typeId = quotS, 53 typeSort = [], 54 typeArgs =[preAlphabetType]} 55 56 -- Name for the datatype of process names 57 procNameS :: String 58 procNameS = "ProcName" 59 60 -- Type for the datatype of process names 61 procNameType :: Typ 62 procNameType = Type {typeId = procNameS, 63 typeSort = [], 64 typeArgs =[]} 65 66 -- name for CspProvers ('pn, 'a) proc type 67 procS :: String 68 procS = "proc" 69 70 -- Type for (ProcName,Alpahbet) proc 71 cCProverProcType :: Typ 72 cCProverProcType = Type {typeId = procS, 73 typeSort = [], 74 typeArgs =[procNameType, alphabetType]} 75 76 -- Name for the function for mapping process names to real processes 77 procMapS :: String 78 procMapS = "ProcMap" 79 80 -- Type for the function for mapping process names to real processes 81 procMapType :: Typ 82 procMapType = mkFunType procNameType cCProverProcType 83 27 84 barExtS :: String 28 85 barExtS = "_Bar" 86 87 baseSign :: BaseSig 88 baseSign = Main_thy 29 89 30 90 classS :: String … … 36 96 -- Convert a SORT to a string 37 97 convertSort2String :: SORT -> String 38 convertSort2String s = show s 98 convertSort2String s = showIsaTypeT s baseSign 99 100 convertProcessName2String :: PROCESS_NAME -> String 101 convertProcessName2String pn = (show pn)