mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 01:22:51 -06:00
test with numerals
This commit is contained in:
12
lib/resource-0.6/english/NumeralsResEng.gf
Normal file
12
lib/resource-0.6/english/NumeralsResEng.gf
Normal file
@@ -0,0 +1,12 @@
|
||||
resource NumeralsResEng = {
|
||||
|
||||
param DForm = unit | teen | ten ;
|
||||
|
||||
oper mkNum : Str -> Str -> Str -> {s : DForm => Str} =
|
||||
\two -> \twelve -> \twenty ->
|
||||
{s = table {unit => two ; teen => twelve ; ten => twenty}} ;
|
||||
oper regNum : Str -> {s : DForm => Str} =
|
||||
\six -> mkNum six (six + "teen") (six + "ty") ;
|
||||
oper ss : Str -> {s : Str} = \s -> {s = s} ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user