summaryrefslogtreecommitdiff
path: root/examples/phrasebook/PhrasebookFre.gf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/phrasebook/PhrasebookFre.gf')
-rw-r--r--examples/phrasebook/PhrasebookFre.gf23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/phrasebook/PhrasebookFre.gf b/examples/phrasebook/PhrasebookFre.gf
new file mode 100644
index 000000000..662f5aade
--- /dev/null
+++ b/examples/phrasebook/PhrasebookFre.gf
@@ -0,0 +1,23 @@
+--# -path=.:present
+
+concrete PhrasebookFre of Phrasebook =
+ GreetingsFre,
+ FoodFre
+ ** open
+ SyntaxFre,
+ ParadigmsFre,
+ ResFre, ---- for Num to Utt
+ Prelude in {
+
+lincat
+ Phrase = Utt ;
+
+lin
+ PNumeral n = mkPhrase (ss ((mkCard <n : Numeral>).s ! masculine)) ; ----
+ PGreeting g = mkPhrase g ;
+ PSentence s = s ;
+
+oper
+ mkPhrase : SS -> Utt = \s -> lin Utt s ;
+
+}