Skip to main content

parse_from

Function parse_from 

Source
pub fn parse_from(query: &str, rule_name: &str, filter: bool) -> Result<Tree>
Expand description

Parse from a named rule, for tests and for the differential harness.

filter off runs the same walk with the FIRST filter disabled, which is how the harness checks that the filter is the superset it claims to be: the two modes have to accept the same queries and build the same trees, and if they ever do not, the filter is wrong and not the grammar.