public static ConditionExpression ParseCondition (string condition) { ConditionParser parser = new ConditionParser (condition); ConditionExpression e = parser.ParseExpression (); if (!parser.tokenizer.IsEOF ()) throw new ExpressionParseException (String.Format ("Unexpected token found, {0}, in condition \"{1}\"", parser.tokenizer.Token, condition)); return e; }
public static ConditionExpression ParseCondition (string condition) { ConditionParser parser = new ConditionParser (condition); ConditionExpression e = parser.ParseExpression (); if (!parser.tokenizer.IsEOF ()) throw new ExpressionParseException (String.Format ("Unexpected token at end of condition: \"{0}\"", parser.tokenizer.Token.Value)); return e; }