public BelowThousandParser(INumericalParser nextParser) : base(nextParser)
 {
     _digitsDictionary      = new BelowTen();
     _belowTwentyDictionary = new BelowTwenty();
     _dozensDictionary      = new Dozens();
     _hundredsDictionary    = new Hundreds();
 }
예제 #2
0
        public NumbersToText()
        {
            _zeroDictionary  = new ZeroDictionary();
            _minusDictionary = new MinusDictionary();

            INumericalParser innerParser = new BillionParser();

            innerParser      = new MillionsParser(innerParser);
            innerParser      = new ThousandsParser(innerParser);
            _numericalParser = new BelowThousandParser(innerParser);
        }
예제 #3
0
 protected BaseNumericalParser(INumericalParser nextParser)
 {
     _nextParser = nextParser;
 }
예제 #4
0
 protected BasePostfixParser(INumericalParser nextParser) : base(nextParser)
 {
     _belowThousandParser = new BelowThousandParser();
 }
예제 #5
0
 public MillionsParser(INumericalParser nextParser) : base(nextParser)
 {
 }
예제 #6
0
 public BillionParser(INumericalParser nextParser) : base(nextParser)
 {
 }
예제 #7
0
 public ThousandsParser(INumericalParser nextParser) : base(nextParser)
 {
 }