diff options
| author | bjorn <bjorn@bringert.net> | 2008-08-14 07:58:04 +0000 |
|---|---|---|
| committer | bjorn <bjorn@bringert.net> | 2008-08-14 07:58:04 +0000 |
| commit | 77270a010a0b453e9a84c3e62db7cfd22e49d55d (patch) | |
| tree | d17682a545d6ac1e68ff49b8c20964182794baf7 /grammars/numerals/NumSwedish.gf | |
| parent | 0bbb906141711767678f82b15a7b43e65e0b5bd6 (diff) | |
Remove the grammars directory. It was full of old grammars that don't compile these days. See the old source distributions if you want them.
Diffstat (limited to 'grammars/numerals/NumSwedish.gf')
| -rw-r--r-- | grammars/numerals/NumSwedish.gf | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/grammars/numerals/NumSwedish.gf b/grammars/numerals/NumSwedish.gf deleted file mode 100644 index c216ff596..000000000 --- a/grammars/numerals/NumSwedish.gf +++ /dev/null @@ -1,44 +0,0 @@ ---# -path=.:../prelude - -concrete NumSwedish of Numerals = open ResNumSwedish, Prelude in { - - flags startcat = Numeral ; lexer=unglue ; unlexer=glue ; - - lincat Digit = { - s : DForm => Str - } ; - lincat Sub10 = { - s : DForm => Str - } ; - lin n2 = mkTal "två" "tolv" "tjugo" ; - lin n3 = mkTal "tre" "tretton" "trettio" ; - lin n4 = mkTal "fyra" "fjorton" "fyrtio" ; - lin n5 = regTal "fem" ; - lin n6 = regTal "sex" ; - lin n7 = mkTal "sju" "sjutton" "sjuttio" ; - lin n8 = mkTal "åtta" "arton" "åttio" ; - lin n9 = mkTal "nio" "nitton" "nittio" ; - lin num = \x -> x ; - lin pot0 = \d -> { - s = table { - f => d.s ! f - } - } ; - lin pot01 = { - s = table { - f => "ett" - } - } ; - lin pot0as1 = \n -> ss (n.s ! ental); - lin pot1 = \ d -> ss (d.s ! tiotal); - lin pot110 = ss "tio" ; - lin pot111 = ss "elva" ; - lin pot1as2 = \ n -> n ; - lin pot1plus = \ d -> \ e -> ss (glueOpt (d.s ! tiotal) (e.s ! ental)) ; - lin pot1to19 = \ d -> ss (d.s ! ton); - lin pot2 = \ d -> ss (glueOpt (d.s ! ental) "hundra") ; - lin pot2as3 = \ n -> n ; - lin pot2plus = \ d -> \ e -> ss (glueOpt (glueOpt (d.s ! ental) "hundra") e.s); - lin pot3 = \ n -> ss (glueOpt n.s "tusen"); - lin pot3plus = \ n -> \ m -> ss (noglueOpt (glueOpt n.s "tusen") m.s); - } |
