blob: 8ff0c88077ef05ad342367a3c09460a3f9255db0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
-- A file with Pointers...
-- With pointers I mean the phrases that point out a specific semantics of a segment.
-- Example "I want to listen to the artist Sting" where "the artist" makes clear
-- that "Sting" is an artist and not a song for instance.
resource SpecResSwe = {
param ListInfo = Numeric | Ordered ;
param ItemChoice = Artist | Song | Post;
oper listForm : ListInfo => Str
= table {
Numeric => ["nummer"];
Ordered => ["den"]
};
oper itemForm : ItemChoice => Str
= table {
Artist => "artisten";
Song => "låten";
Post => ""
};
}
|