summaryrefslogtreecommitdiff
path: root/examples/numerals/amharic.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/numerals/amharic.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/numerals/amharic.gf')
-rw-r--r--examples/numerals/amharic.gf47
1 files changed, 0 insertions, 47 deletions
diff --git a/examples/numerals/amharic.gf b/examples/numerals/amharic.gf
deleted file mode 100644
index 853e73797..000000000
--- a/examples/numerals/amharic.gf
+++ /dev/null
@@ -1,47 +0,0 @@
-concrete amharic of Numerals = {
-
-flags coding = UTF8;
-
-param DForm = unit | ten ;
--- Size is Sg or Pl --
-
-lincat Numeral = { s : Str } ;
-lincat Digit = {s : DForm => Str} ;
-lincat Sub10 = {s : DForm => Str} ;
-lincat Sub100 = { s : Str } ;
-lincat Sub1000 = { s : Str } ;
-lincat Sub1000000 = { s : Str } ;
-
-oper mkNum : Str -> Str ->{s : DForm => Str} =
- \hulet -> \haya ->
- {s = table {unit => hulet ; ten => haya}} ;
-
-oper ss : Str -> {s : Str} = \s -> {s = s} ;
-
-lin num x = x ;
-lin n2 = mkNum "ሁለት" "ሃያ";
-lin n3 = mkNum "ሶስት" "ሰላሳ" ;
-lin n4 = mkNum "አራት" "አርባ" ;
-lin n5 = mkNum "አምስት" "ሃምሳ" ;
-lin n6 = mkNum "ስድስት" "ስድሳ" ;
-lin n7 = mkNum "ሰባት" "ሰባ" ;
-lin n8 = mkNum "ስምንት" "ሰማንያ" ;
-lin n9 = mkNum "ዘጠኝ" "ዘጠና" ;
-
-lin pot01 = {s = table {f => "አንድ"}} ;
-lin pot0 d = {s = table {f => d.s ! f}} ;
-lin pot110 = ss "አስር" ;
-lin pot111 = ss "አስራ አንድ" ;
-lin pot1to19 d ={s = "አስራ"++ d.s ! unit} ;
-lin pot0as1 n = {s = n.s ! unit} ;
-lin pot1 d = {s = d.s ! ten} ;
-lin pot1plus d e = {s = d.s ! ten ++ e.s ! unit} ;
-lin pot1as2 n = n ;
-lin pot2 d = {s = d.s ! unit ++ "መቶ"} ;
-lin pot2plus d e = {s = d.s ! unit ++ "መቶ" ++ e.s} ;
-lin pot2as3 n = n ;
-lin pot3 n = {s = n.s ++ "ሺህ"} ;
-lin pot3plus n m = {s = n.s ++ "ሺህ" ++ m.s} ;
-
-
-}