summaryrefslogtreecommitdiff
path: root/examples/phrasebook/WordsFre.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2010-03-26 22:07:17 +0000
committeraarne <aarne@chalmers.se>2010-03-26 22:07:17 +0000
commit691620346ccdae242ce8b203fc04d3ffeeea6247 (patch)
treec480f98b2615bf16236d0a89e052f0dd0c59712a /examples/phrasebook/WordsFre.gf
parentc24440d1346a01d660f83359d8ef72a2ef1b0c13 (diff)
change Food to Words in Phrasebook, since it's unpractical to have many small modules; added syntactic forms and words
Diffstat (limited to 'examples/phrasebook/WordsFre.gf')
-rw-r--r--examples/phrasebook/WordsFre.gf34
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/phrasebook/WordsFre.gf b/examples/phrasebook/WordsFre.gf
new file mode 100644
index 000000000..733038ce3
--- /dev/null
+++ b/examples/phrasebook/WordsFre.gf
@@ -0,0 +1,34 @@
+-- (c) 2009 Ramona Enache and Aarne Ranta under LGPL
+
+concrete WordsFre of Words = SentencesFre ** open
+ SyntaxFre,
+ ParadigmsFre in
+{
+flags coding=utf8 ;
+
+lin
+
+Wine = mkCN (mkN "vin") ;
+Cheese = mkCN (mkN "fromage" masculine) ;
+Fish = mkCN (mkN "poisson" masculine) ;
+Pizza = mkCN (mkN "pizza" feminine) ;
+
+Fresh = mkAP (mkA "frais" "fraîche") ;
+Warm = mkAPA "chaud" ;
+Italian = mkAPA "italien" ;
+Expensive = mkAPA "cher" ;
+Delicious = mkAPA "délicieux" ;
+Boring = mkAPA "ennuyeux" ;
+
+ Restaurant = mkCN (mkN "restaurant") ;
+ Bar = mkCN (mkN "bar") ;
+ Toilet = mkCN (mkN "toilette") ;
+
+ Euro = mkCN (mkN "euro") ;
+ Dollar = mkCN (mkN "dollar") ;
+ Lei = mkCN (mkN "lei") ; ---- ?
+
+oper
+mkAPA : (_ : Str) -> AP = \x -> mkAP (mkA x) ;
+
+}