summaryrefslogtreecommitdiff
path: root/gf-book/examples/chapter5/Foods.gf
blob: 8ea02f39d3e33c7551a03aad76b698f91ba76147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- (c) 2009 Aarne Ranta under LGPL

abstract Foods = {
  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 ;
}