summaryrefslogtreecommitdiff
path: root/examples/numerals/interlingua.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-06-25 16:54:35 +0000
committeraarne <aarne@cs.chalmers.se>2008-06-25 16:54:35 +0000
commite9e80fc389365e24d4300d7d5390c7d833a96c50 (patch)
treef0b58473adaa670bd8fc52ada419d8cad470ee03 /examples/numerals/interlingua.gf
parentb96b36f43de3e2f8b58d5f539daa6f6d47f25870 (diff)
changed names of resource-1.3; added a note on homepage on release
Diffstat (limited to 'examples/numerals/interlingua.gf')
-rw-r--r--examples/numerals/interlingua.gf56
1 files changed, 0 insertions, 56 deletions
diff --git a/examples/numerals/interlingua.gf b/examples/numerals/interlingua.gf
deleted file mode 100644
index acd431688..000000000
--- a/examples/numerals/interlingua.gf
+++ /dev/null
@@ -1,56 +0,0 @@
-include numerals.Abs.gf ;
-
-param DForm = unit | ten ;
-
-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 -> Lin Digit =
- \duo-> \vinti->
- {s = table {unit => duo ; ten => vinti}} ;
-
-oper regNum : Str -> Lin Digit =
- \cinque ->
- case cinque of {
- nov + "em"=> mkNum cinque (nov + "anta");
- cinqu + "e" => mkNum cinque (cinqu + "anta");
- cinqu + "o" => mkNum cinque (cinqu + "anta");
- sex => mkNum sex (sex + "anta")
- };
-
-oper ss : Str -> {s : Str} = \s -> {s = s} ;
-
-lin num x = x ;
-lin n2 = mkNum "duo" "vinti";
-lin n3 = mkNum "tres" "trenta";
-lin n4 = mkNum "quatro" "quaranta";
-lin n5 = regNum "cinque";
-lin n6 = regNum "sex" ;
-lin n7 = regNum "septe" ;
-lin n8 = regNum "octo" ;
-lin n9 = regNum "novem" ;
-
-lin pot01 = {s = table {f => "un"}} ;
-lin pot0 d = {s = table {f => d.s ! f}} ;
-lin pot110 = ss "dece" ;
-lin pot111 = ss ("dece" ++ "-" ++ "un");
-lin pot1to19 d = {s = "dece" ++ "-" ++ 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 ++ "cento"} ;
-lin pot2plus d e = {s = d.s ! unit ++ "cento" ++ e.s} ;
-
-lin pot2as3 n = n ;
-
-lin pot3 n = {s = n.s ++ "mille"} ;
-lin pot3plus n m = {s = n.s ++ "mille" ++ m.s} ;
-