summaryrefslogtreecommitdiff
path: root/grammars/numerals/ResNumSwedish.gf
diff options
context:
space:
mode:
authoraarne <unknown>2003-11-10 15:45:42 +0000
committeraarne <unknown>2003-11-10 15:45:42 +0000
commite470c6281fc2ee7f53fa0ae41d76c30bb52b0f0b (patch)
treebacd93bf8b07d653cf3119503fdf604a2466f556 /grammars/numerals/ResNumSwedish.gf
parenta931676d902033fdef17e7e086c40f5c753e9844 (diff)
New numeral grammars.
Diffstat (limited to 'grammars/numerals/ResNumSwedish.gf')
-rw-r--r--grammars/numerals/ResNumSwedish.gf23
1 files changed, 23 insertions, 0 deletions
diff --git a/grammars/numerals/ResNumSwedish.gf b/grammars/numerals/ResNumSwedish.gf
new file mode 100644
index 000000000..2f4c80c9a
--- /dev/null
+++ b/grammars/numerals/ResNumSwedish.gf
@@ -0,0 +1,23 @@
+resource ResNumSwedish = {
+ param DForm = ental | ton | tiotal ;
+ oper mkTal : Str -> Str -> Str -> {
+ s : DForm => Str
+ }
+ = \ två -> \ tolv -> \ tjugo -> {
+ s = table {
+ ental => två ;
+ ton => tolv ;
+ tiotal => tjugo
+ }
+ } ;
+ oper regTal : Str -> {
+ s : DForm => Str
+ }
+ = \ fem -> mkTal fem (fem + "ton")(fem + "tio");
+ oper ss : Str -> {
+ s : Str
+ }
+ = \ s -> {
+ s = s
+ } ;
+ }