Go backward to 5.3 Language Constructs
Go up to 5 Architectural Specifications

5.4 Example

The following simple example illustrates an architectural specification definition (referencing ordinary specifications named List, Char, and Nat, assumed to declare the sorts Elem and List[Elem], Char, and Nat, respectively):

arch spec
CN_List =
units
 
C : Char ;
N : Nat ;
F : Elem -> List[Elem]
result
F[C fit Elem |-> Char] and F[N fit Elem |-> Nat]
Further examples of architectural specifications are given in the CASL Summary [4] and in a recent paper [1].
CoFI Document: CASL/GuidedTour -- Version: 1 -- July 1999.
Comments to pdmosses@brics.dk

Go backward to 5.3 Language Constructs
Go up to 5 Architectural Specifications