summaryrefslogtreecommitdiff
path: root/examples/tutorial/embedded/Query.gf
blob: b1ba23a87d267e6db3e10a55525f37cbdd7cd4a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 ;
}