summaryrefslogtreecommitdiff
path: root/examples/numerals/swedish.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/swedish.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/swedish.gf')
-rw-r--r--examples/numerals/swedish.gf53
1 files changed, 0 insertions, 53 deletions
diff --git a/examples/numerals/swedish.gf b/examples/numerals/swedish.gf
deleted file mode 100644
index 12223f567..000000000
--- a/examples/numerals/swedish.gf
+++ /dev/null
@@ -1,53 +0,0 @@
-concrete swedish of Numerals = {
-flags language = sv_SE ;
--- include numerals.Abs.gf ;
-
-param DForm = ental | ton | tiotal ;
-
-lincat Numeral = { s : Str } ;
-oper LinDigit = {s : DForm => Str} ;
-lincat Digit = LinDigit ;
-
-lincat Sub10 = {s : DForm => Str} ;
-lincat Sub100 = { s : Str } ;
-lincat Sub1000 = { s : Str } ;
-lincat Sub1000000 = { s : Str } ;
-
-oper
- mkTal : Str -> Str -> Str -> LinDigit = \två, tolv, tjugo ->
- {s = table {ental => två ; ton => tolv ; tiotal => tjugo}} ;
-
- regTal : Str -> LinDigit = \fem ->
- mkTal fem (fem + "ton") (fem + "tio") ;
-
- ss : Str -> {s : Str} = \s -> {s = s} ;
-
-lin
- num x = x ;
-
- n2 = mkTal "två" "tolv" "tjugo" ;
- n3 = mkTal "tre" "tretton" "trettio" ;
- n4 = mkTal "fyra" "fjorton" "fyrtio" ;
- n5 = regTal "fem" ;
- n6 = regTal "sex" ;
- n7 = mkTal "sju" "sjutton" "sjuttio" ;
- n8 = mkTal "åtta" "arton" "åttio" ;
- n9 = mkTal "nio" "nitton" "nittio" ;
-
- pot01 = {s = table {f => "ett"}} ;
- pot0 d = {s = table {f => d.s ! f}} ;
- pot110 = ss "tio" ;
- pot111 = ss "elva" ;
- pot1to19 d = ss (d.s ! ton) ;
- pot0as1 n = ss (n.s ! ental) ;
- pot1 d = ss (d.s ! tiotal) ;
- pot1plus d e = ss (d.s ! tiotal ++ e.s ! ental) ;
- pot1as2 n = n ;
- pot2 d = ss (d.s ! ental ++ "hundra") ;
- pot2plus d e = ss (d.s ! ental ++ "hundra" ++ e.s) ;
- pot2as3 n = n ;
- pot3 n = ss (n.s ++ "tusen") ;
- pot3plus n m = ss (n.s ++ "tusen" ++ m.s) ;
-
-
-}