summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2010-03-04 16:56:36 +0000
committeraarne <aarne@chalmers.se>2010-03-04 16:56:36 +0000
commit8422db66ca442ea47690d53ae22ba1a48c02cca0 (patch)
treef95abdae9b608541c826ef72be07d2bf9e59b637
parent590cc6bb0b22e518e0a45c2321b1e2ae1ea13fb1 (diff)
FoodsUrd added (by Shafqat)
-rw-r--r--contrib/summerschool/foods/FoodsUrd.gf31
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/summerschool/foods/FoodsUrd.gf b/contrib/summerschool/foods/FoodsUrd.gf
new file mode 100644
index 000000000..a1685b17f
--- /dev/null
+++ b/contrib/summerschool/foods/FoodsUrd.gf
@@ -0,0 +1,31 @@
+concrete FoodsUrd of Foods = {
+ flags coding = utf8 ;
+ param Number = Sg | Pl ;
+
+ oper coupla : Number -> Str =\n -> case n of {Sg => "ہے" ; Pl => "ہیں"};
+
+
+ lincat
+ Comment, Quality = {s : Str} ;
+ Item = {s: Str ; n: Number};
+ Kind = {s: Number => Str};
+
+ lin
+ Pred item quality = {s = item.s ++ quality.s ++ coupla item.n} ;
+ This kind = {s = "یھ" ++ kind.s ! Sg; n= Sg} ;
+ These kind = {s = "یھ" ++ kind.s ! Pl; n = Pl} ;
+ That kind = {s = "وہ" ++ kind.s ! Sg; n= Sg} ;
+ Those kind = {s = "وہ" ++ kind.s ! Pl; n=Pl} ;
+ Mod quality kind = {s = \\n => quality.s ++ kind.s ! n} ;
+ Wine = {s = table { Sg => "شراب" ; Pl => "شرابیں"} };
+ Cheese = {s = table { Sg => "پنیر" ; Pl => "پنیریں"} };
+ Fish = {s = table { Sg => "مچھلی" ; Pl => "مچھلیاں"} };
+ Pizza = {s = table { Sg => "پیزہ" ; Pl => "پیزے"} };
+ Very quality = {s = "بہت" ++ quality.s} ;
+ Fresh = {s = "تازہ"} ;
+ Warm = {s = "گرم"} ;
+ Italian = {s = "اٹا لوی"} ;
+ Expensive = {s = "مہنگا"} ;
+ Delicious = {s = "مزیدار"} ;
+ Boring = {s = "فضول"} ;
+ }