Ejemplo n.º 1
0
 private static void Process(IReaderWriter readerWriter, IExpressionInterpreter interpreter)
 {
     foreach (var inputExpression in readerWriter.GetInputExpressions())
     {
         try
         {
             readerWriter.WriteResult(interpreter.Interpret(inputExpression).Normalization());
         }
         catch (IncorrectExpressionException exc)
         {
             Console.WriteLine(exc.Message);
         }
     }