summaryrefslogtreecommitdiff
path: root/examples/foods/FoodsBul.gf
diff options
context:
space:
mode:
authorjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-09-16 07:17:27 +0000
committerjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-09-16 07:17:27 +0000
commitf5461eb3d4eb2605b546a4ed202c12bcdaa1f4e4 (patch)
tree946c9e8542b8e8271b6b529a95c0400fa6613cb4 /examples/foods/FoodsBul.gf
parent8e1c6cca407c82fc09569d80c231b8d256735989 (diff)
Remove contribs and examples
Everything has now been moved to a separate repository at https://github.com/GrammaticalFramework/gf-contrib The contents of the examples folder are build during SetupWeb
Diffstat (limited to 'examples/foods/FoodsBul.gf')
-rw-r--r--examples/foods/FoodsBul.gf43
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/foods/FoodsBul.gf b/examples/foods/FoodsBul.gf
new file mode 100644
index 000000000..ac9127669
--- /dev/null
+++ b/examples/foods/FoodsBul.gf
@@ -0,0 +1,43 @@
+-- (c) 2009 Krasimir Angelov under LGPL
+
+concrete FoodsBul of Foods = {
+
+ flags
+ coding = utf8;
+
+ param
+ Gender = Masc | Fem | Neutr;
+ Number = Sg | Pl;
+ Agr = ASg Gender | APl ;
+
+ lincat
+ Comment = Str ;
+ Quality = {s : Agr => Str} ;
+ Item = {s : Str; a : Agr} ;
+ Kind = {s : Number => Str; g : Gender} ;
+
+ lin
+ Pred item qual = item.s ++ case item.a of {ASg _ => "е"; APl => "са"} ++ qual.s ! item.a ;
+
+ This kind = {s=case kind.g of {Masc=>"този"; Fem=>"тази"; Neutr=>"това" } ++ kind.s ! Sg; a=ASg kind.g} ;
+ That kind = {s=case kind.g of {Masc=>"онзи"; Fem=>"онази"; Neutr=>"онова"} ++ kind.s ! Sg; a=ASg kind.g} ;
+ These kind = {s="тези" ++ kind.s ! Pl; a=APl} ;
+ Those kind = {s="онези" ++ kind.s ! Pl; a=APl} ;
+
+ Mod qual kind = {s=\\n => qual.s ! (case n of {Sg => ASg kind.g; Pl => APl}) ++ kind.s ! n; g=kind.g} ;
+
+ Wine = {s = table {Sg => "вино"; Pl => "вина"}; g = Neutr};
+ Cheese = {s = table {Sg => "сирене"; Pl => "сирена"}; g = Neutr};
+ Fish = {s = table {Sg => "риба"; Pl => "риби"}; g = Fem};
+ Pizza = {s = table {Sg => "пица"; Pl => "пици"}; g = Fem};
+
+ Very qual = {s = \\g => "много" ++ qual.s ! g};
+
+ Fresh = {s = table {ASg Masc => "свеж"; ASg Fem => "свежа"; ASg Neutr => "свежо"; APl => "свежи"}};
+ Warm = {s = table {ASg Masc => "горещ"; ASg Fem => "гореща"; ASg Neutr => "горещо"; APl => "горещи"}};
+ Italian = {s = table {ASg Masc => "италиански"; ASg Fem => "италианска"; ASg Neutr => "италианско"; APl => "италиански"}};
+ Expensive = {s = table {ASg Masc => "скъп"; ASg Fem => "скъпа"; ASg Neutr => "скъпо"; APl => "скъпи"}};
+ Delicious = {s = table {ASg Masc => "превъзходен"; ASg Fem => "превъзходна"; ASg Neutr => "превъзходно"; APl => "превъзходни"}};
+ Boring = {s = table {ASg Masc => "еднообразен"; ASg Fem => "еднообразна"; ASg Neutr => "еднообразно"; APl => "еднообразни"}};
+
+}