summaryrefslogtreecommitdiff
path: root/examples/tutorial/resource-foods/Foods.gf
blob: bbb2770dd7997b513c9cafc9680fb69db1118d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
abstract Foods = {

  flags startcat=Phrase ;

  cat
    Phrase ; Item ; Kind ; Quality ;

  fun
    Is,Isnt : Item -> Quality -> Phrase ;
    This, That, These, Those : Kind -> Item ;
    QKind : Quality -> Kind -> Kind ;
    Wine, Cheese, Fish, Pizza : Kind ;
    Very : Quality -> Quality ;
    Fresh, Warm, Italian, Expensive, Delicious, Boring : Quality ;

}