private static void ParseSearch(string filter, QuerySpec spec, TableSpec tabSpec) { if (!string.IsNullOrWhiteSpace(filter)) { var lexer = new FilterTranslator(new AntlrInputStream(filter), tabSpec, spec); var predicate = new StringBuilder(); while (!lexer._hitEOF) { predicate.Append(lexer.NextToken().Text); } spec.predicate = predicate.ToString(); } }