mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
English version of Phrasebook
This commit is contained in:
23
examples/phrasebook/PhrasebookEng.gf
Normal file
23
examples/phrasebook/PhrasebookEng.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:present
|
||||
|
||||
concrete PhrasebookEng of Phrasebook =
|
||||
GreetingsEng,
|
||||
FoodEng ** open
|
||||
SyntaxEng,
|
||||
ResEng, ---- for Num to Utt
|
||||
Prelude in {
|
||||
|
||||
lincat
|
||||
Phrase = Utt ;
|
||||
|
||||
lin
|
||||
PNumeral n =
|
||||
mkPhrase (ss ((SyntaxEng.mkCard <n : Numeral>).s ! Nom)) ; ----
|
||||
PGreeting g = mkPhrase g ;
|
||||
PSentence s = s ;
|
||||
|
||||
|
||||
oper
|
||||
mkPhrase : SS -> Utt = \s -> lin Utt s ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user