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

concrete PhrasebookRon of Phrasebook = 
  GreetingsRon,
  FoodRon
  ** open 
    SyntaxRon,
    ResRon, ---- for Num to Utt 
    Prelude in {

lincat 
  Phrase = Utt ;

lin
  PNumeral n = mkPhrase (ss ((mkCard <n : Numeral>).sp ! Masc)) ; ----
  PGreeting g = mkPhrase g ;
  PSentence s = s ;

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

}