New numeral grammars.
This commit is contained in:
1 parent
a931676d90
commit
e470c6281f
5 files changed
+75
-10
No files matched your search
@@ -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
|
||||
} ;
|
||||
}
|
||||
Reference in new issue
Block a user