Parses the input string using a lexer and parser, constructs a condition tree using a visitor, and returns a Filter object.
Resolves escape sequences in a given string.