summaryrefslogtreecommitdiff
path: root/gf-book/examples/chapter4/Comment.gf
blob: 0a812c6efa740838ced14435f322cffb8e499a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
abstract Comment = {
  flags startcat = Comment ;
  cat
    Comment ; Item ; Kind ; Quality ;
  fun
    Pred : Item -> Quality -> Comment ;
    This, That, These, Those : Kind -> Item ;
    Mod : Quality -> Kind -> Kind ;
    Wine, Cheese, Fish, Pizza : Kind ;
    Very : Quality -> Quality ;
    Fresh, Warm, Italian, 
      Expensive, Delicious, Boring : Quality ;
}