diff options
| author | aarne <aarne@chalmers.se> | 2010-03-21 17:42:11 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2010-03-21 17:42:11 +0000 |
| commit | df0c6fb8d3acb525e7cdf520b5c51d967d12567e (patch) | |
| tree | 2991bc8a9e9c4f86d1e6214f1100397070f42a2e /examples/phrasebook/PhrasebookEng.gf | |
| parent | f4574a4cfa97e8f501967cf86f33beaf105d0497 (diff) | |
English version of Phrasebook
Diffstat (limited to 'examples/phrasebook/PhrasebookEng.gf')
| -rw-r--r-- | examples/phrasebook/PhrasebookEng.gf | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/phrasebook/PhrasebookEng.gf b/examples/phrasebook/PhrasebookEng.gf new file mode 100644 index 000000000..ee919d285 --- /dev/null +++ b/examples/phrasebook/PhrasebookEng.gf @@ -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 ; + +} |
