summaryrefslogtreecommitdiff
path: root/examples/phrasebook/PhrasebookEng.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2010-03-21 17:42:11 +0000
committeraarne <aarne@chalmers.se>2010-03-21 17:42:11 +0000
commitdf0c6fb8d3acb525e7cdf520b5c51d967d12567e (patch)
tree2991bc8a9e9c4f86d1e6214f1100397070f42a2e /examples/phrasebook/PhrasebookEng.gf
parentf4574a4cfa97e8f501967cf86f33beaf105d0497 (diff)
English version of Phrasebook
Diffstat (limited to 'examples/phrasebook/PhrasebookEng.gf')
-rw-r--r--examples/phrasebook/PhrasebookEng.gf23
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 ;
+
+}