Revision 57

Date:
2010/11/16 19:34:48
Author:
gdshaw@RISCID.ORG
Revision Log:
Added rules for numerals.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • trunk/en/bootstrap/conjunctions.lex

     
    1 [and]
    2 and
    3
  • trunk/en/bootstrap/en.lang

     
    4 4 lexicon modifiers.lex
    5 5 lexicon determiners.lex
    6 6 lexicon prepositions.lex
    7 lexicon conjunctions.lex
    8 lexicon numerals.lex
    9 lexicon punctuation.lex
    7 10 grammar grammar.rules
  • trunk/en/bootstrap/grammar.rules

     
    10 10
    11 11 # Prepositional phrases
    12 12 pp <- prep np
    13
    14 # Cardinal numbers
    15 card9h <- hyphen card9
    16 card99 <- card9
    17 card99 <- card19
    18 card99 <- card90
    19 card99 <- card90 card9
    20 card99 <- card90 card9h
    21 card99a <- and card99
    22 card900 <- card100
    23 card900 <- card9 card100
    24 card999 <- card99
    25 card999 <- card900 card99a
    26 card999a <- and card99
    27 card999a <- card999
    28 card9900 <- card99 card100
    29 card9999 <- card9900 card99a
    30 card999000 <- card999 card1000
    31 card999999 <- card999
    32 card999999 <- card999000 card999a
    33 cardterm <- card999999 cardmul
    34 cardexp <- card999999
    35 cardexp <- cardterm cardexp
    36 card <- cardexp
    37 card <- card9999
  • trunk/en/bootstrap/numerals.lex

     
    1 [card9]
    2 one
    3 two
    4 three
    5 four
    6 five
    7 six
    8 seven
    9 eight
    10 nine
    11
    12 [card19]
    13 ten
    14 eleven
    15 twelve
    16 thirteen
    17 fourteen
    18 fifteen
    19 sixteen
    20 seventeen
    21 eighteen
    22 nineteen
    23
    24 [card90]
    25 twenty
    26 thirty
    27 fourty
    28 fifty
    29 sixty
    30 seventy
    31 eighty
    32 ninety
    33
    34 [card100]
    35 hundred
    36
    37 [card1000]
    38 thousand
    39
    40 [cardmul]
    41 million
    42 billion
    43 trillion