pub fn parse_query(src: &str) -> Result<QueryPattern, String>Expand description
Parse an S-expression query string into a QueryPattern.
Syntax:
(for :no-take) → QueryPattern::For { no_take: true }
(call :name "foo") → QueryPattern::Call { name: Some("foo") }
(effect :class External) → QueryPattern::Effect { class: Some(External) }
(hook :path "tick") → QueryPattern::Hook { path: Some("tick") }
_ → QueryPattern::Wildcard