1
0
forked from GitHub/gf-core

New numeral grammars.

This commit is contained in:
aarne
2003-11-10 15:45:42 +00:00
parent a931676d90
commit e470c6281f
5 changed files with 75 additions and 10 deletions

View 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
} ;
}