summaryrefslogtreecommitdiff
path: root/gf-book/examples/chapter3/Foods.gf
blob: e60f0ea0969d9dd4f9d211ed5c95ddef07de9b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 ;
}