forked from GitHub/gf-core
New numeral grammars.
This commit is contained in:
23
grammars/numerals/ResNumSwedish.gf
Normal file
23
grammars/numerals/ResNumSwedish.gf
Normal file
@@ -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