Beispiel #1
0
        public void Interpret(Context context)
        {
            ResolveCurrentNumbers(context.Input);

            for (int part = 1; part <= partialNumber.Length; part++)
                WritePartialNumberParts(part);

            context.AddWord(word.Trim());

            var currentNumber = fullNumber.Remove(fullNumber.Length - 3, 3);
            context.Input = string.IsNullOrEmpty(currentNumber) ? 0 : int.Parse(currentNumber);
        }