summaryrefslogtreecommitdiff
path: root/examples/phrasebook/PhrasebookFin.gf
blob: 2144d90fe7f2a0d2dd3f97fc5e7f102dca2883ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--# -path=.:present

concrete PhrasebookFin of Phrasebook = 
  GreetingsFin,
  WordsFin ** open 
    SyntaxFin,
    ResFin, ---- for Num to Utt 
    Prelude in {

lincat 
  Phrase = Text ;

lin
  PNumeral n = 
    mkPhrase (ss ((SyntaxFin.mkCard <n : Numeral>).s ! Sg ! Nom)) ; ----
  PGreeting g = mkPhrase g ;
  PSentence s = mkText s ;
  PQuestion s = mkText s ;


oper 
  mkPhrase : SS -> Utt = \s -> lin Utt s ;

}