of

fun of(input: String, trace: Boolean = false): Filter(source)

Parses the input string using a lexer and parser, constructs a condition tree using a visitor, and returns a Filter object.

Return

The constructed Filter object.

Parameters

input

The input string to parse and construct the filter from.

trace

If true, enables tracing in the parser.

Throws

if there is an error in parsing or constructing the filter.