summaryrefslogtreecommitdiff
path: root/gf-book/examples/chapter4/Comments.gf
blob: ba36024f3c29cbf20b5f371a4a019de827c32ef6 (plain)
1
2
3
4
5
6
7
8
9
10
abstract Comments = {
  flags startcat = Comment ;
  cat
    Comment ; Item ; Kind ; Quality ;
  fun
    Pred : Item -> Quality -> Comment ;
    This, That, These, Those : Kind -> Item ;
    Mod : Quality -> Kind -> Kind ;
    Very : Quality -> Quality ;
}