6331N/ACopyright : (c) Till Mossakowski, Uni Bremen 2004
6331N/AMaintainer : hausmann@tzi.de
6331N/AAbstract syntax for CoCASL, the coalgebraic extension of CASL
6331N/A Only the added syntax is specified
type C_BASIC_SPEC = BASIC_SPEC C_BASIC_ITEM C_SIG_ITEM C_FORMULA
type AnModFORM = Annoted (FORMULA C_FORMULA)
data C_BASIC_ITEM = CoFree_datatype [Annoted CODATATYPE_DECL] Range
-- pos: free, type, semi colons
| CoSort_gen [Annoted (SIG_ITEMS C_SIG_ITEM C_FORMULA)] Range
-- pos: generated, opt. braces
data C_SIG_ITEM = CoDatatype_items [Annoted CODATATYPE_DECL] Range
data CODATATYPE_DECL = CoDatatype_decl SORT [Annoted COALTERNATIVE] Range
data COALTERNATIVE = Co_construct FunKind (Maybe OP_NAME) [COCOMPONENTS] Range
-- True if Total, pos: "(", semi colons, ")"
| CoSubsorts [SORT] Range
data COCOMPONENTS = CoSelect [OP_NAME] OP_TYPE Range
data MODALITY = Simple_mod SIMPLE_ID | Term_mod (TERM C_FORMULA)
data C_FORMULA = BoxOrDiamond Bool MODALITY (FORMULA C_FORMULA) Range
-- The identifier and the term specify the kind of the modality
-- pos: "[]" or "<>", True if Box, False if Diamond
| CoSort_gen_ax [SORT] [OP_SYMB] Bool
-- flag: belongs to a cofree type and hence is cofreeness axiom?
diamondS, greaterS :: String
cocasl_reserved_words :: [String]
cocasl_reserved_words = [diamondS]