summaryrefslogtreecommitdiff
path: root/eclipse/examples/functors/Foods.gf
blob: 5328473c3462fd6ea36d116e79f142a09e35875f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Abstract Syntax
abstract Foods = {

  flags startcat = Phrase ;

  cat
	Phrase ; Item ; Kind ; Quality ;

  fun
	Is : 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 ;
}