summaryrefslogtreecommitdiff
path: root/examples/peacekeeping/PeaceRes.gf
blob: 52d77ce3bd67ea48b35dd452c79a55924431dc2b (plain)
1
2
3
4
5
6
7
8
9
10
11
resource PeaceRes = {

  param Punct = FullStop | QuestMark | ExclMark ;

  oper
    stop, quest, excl : Str -> { s : Str; p : Punct } ;
    stop x = { s = x; p = FullStop } ;
    quest x = { s = x; p = QuestMark } ;
    excl x = { s = x; p = ExclMark } ;

}