pub fn apply_query(
input_content: &str,
query: &TopiaryQuery,
grammar: &Language,
tolerate_parsing_errors: bool,
) -> FormatterResult<AtomCollection>
Expand description
Applies a query to an input content and returns a collection of atoms.
ยงErrors
This function can return an error if:
- The input content cannot be parsed by the grammar.
- The query content cannot be parsed by the grammar.
- The input exhaustivity check fails.
- A found predicate could not be parsed or is malformed.
- A unknown capture name was encountered in the query.