Revision 60

Date:
2010/11/17 20:47:23
Author:
gdshaw@RISCID.ORG
Revision Log:
Added rules for ordinals.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/en/bootstrap/grammar.rules

     
    22 22 card900 <- card100
    23 23 card900 <- card9 card100
    24 24 card999 <- card99
    25 card999 <- card900
    25 26 card999 <- card900 card99a
    26 27 card999a <- and card99
    27 28 card999a <- card999
     
    35 36 cardexp <- cardterm cardexp
    36 37 card <- cardexp
    37 38 card <- card9999
    39
    40 # Ordinal numbers
    41 ord9h <- hyphen ord9
    42 ord99 <- ord9
    43 ord99 <- ord19
    44 ord99 <- ord90
    45 ord99 <- card90 ord9
    46 ord99 <- card90 ord9h
    47 ord99a <- and ord99
    48 ord900 <- ord100
    49 ord900 <- card9 ord100
    50 ord999 <- ord99
    51 ord999 <- ord900
    52 ord999 <- card900 ord99a
    53 ord999a <- and ord99
    54 ord999a <- ord999
    55 ord999000 <- card999 ord1000
    56 ord999999 <- ord999
    57 ord999999 <- ord999000
    58 ord999999 <- card999000 ord999a
    59 ordexp <- ord999999
    60 ordexp <- card999999 ordmul
    61 ordexp <- cardterm ordexp
    62
  • trunk/en/bootstrap/numerals.lex

     
    42 42 billion
    43 43 trillion
    44 44
    45 [ord9]
    46 first
    47 second
    48 third
    49 fourth
    50 fifth
    51 sixth
    52 seventh
    53 eighth
    54 ninth
    55
    56 [ord19]
    57 tenth
    58 eleventh
    59 twelfth
    60 thirteenth
    61 fourteenth
    62 fifteenth
    63 sixteenth
    64 seventeenth
    65 eighteenth
    66 nineteenth
    67
    68 [ord99]
    69 twentieth
    70 thirtieth
    71 fortieth
    72 fiftieth
    73 sixtieth
    74 seventieth
    75 eightieth
    76 ninetieth
    77
    78 [ord100]
    79 hundredth
    80
    81 [ord1000]
    82 thousandth
    83
    84 [ordmul]
    85 millionth
    86 billionth
    87 trillionth
    88
    45 89 [ordsuf]
    46 90 st
    47 91 nd