Changes from Maude 1.00 to Maude 1.0.1 |
Changes in Core Maude:
pr NAT * (sort Nat to Foo) + BOOL + LIST[Nat] .The second one is a "tuple generator." One can have declarations as
pr TUPLE(n)[V_1, ..., V_n] .for any nonzero natural number n and views V_1 ... V_n with TRIV as source theory. The module expression TUPLE(3), for example, generates a parameterized functional module of the form
fmod TUPLE(3)[C1 :: TRIV, C2 :: TRIV, C3 :: TRIV] is
sorts 3Tuple .
op p1_ : 3Tuple -> Elt.C1 .
op p2_ : 3Tuple -> Elt.C2 .
op (_,_,_) : Elt.C1 Elt.C2 Elt.C3 -> 3Tuple .
op p3_ : 3Tuple -> Elt.C3 .
var E1 : Elt.C1 .
var E2 : Elt.C2 .
var E3 : Elt.C3 .
eq p1(E1, E2, E3) = E1 .
eq p2(E1, E2, E3) = E2 .
eq p3(E1, E2, E3) = E3 .
endfm
[ Maude Home Page] |