summaryrefslogtreecommitdiff
path: root/book/examples/chapter7/Query.gf
blob: b6f83e357416f772a1a1fff0ff8dbd6125267802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
abstract Query = {
  flags startcat=Question ;
  cat 
    Answer ; Question ; Object ;
  fun 
    Even   : Object -> Question ;
    Odd    : Object -> Question ;
    Prime  : Object -> Question ;
    Number : Int -> Object ;
    Yes    : Answer ;
    No     : Answer ;
}