summaryrefslogtreecommitdiff
path: root/data/sample-grammars/ordinal.gram
blob: da4aa4e9f34cf67cc483d386cce9fc17d4467f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[ordinal-number] [actual+ordinal-number]

pragma export-rule [ordinal-number]

[actual+ordinal-number] [ordinal-digit]
	1 [digit] th
	[digit-twoup] [ordinal-digit]
	[digit-twoup] [ordinal-digit]
	[digit-nonzero] [ordinal-number]

[ordinal-digit] 1st
	2nd
	3rd
	4th
	5th
	6th
	7th
	8th
	9th
	0th