Exemplo n.º 1
0
        public static ISentence ParseSentence(string input)
        {
            if (string.IsNullOrWhiteSpace(input))
            {
                throw new ArgumentException();
            }

            if (input.Any(c => Types.Comparison.Contains(c)))
            {
                return((ISentence)MathParser.ParseEquation(input));
            }
            else
            {
                return((ISentence)MathParser.ParseExpression(input));
            }
        }