Skip to main content

parse_inline

Function parse_inline 

Source
pub fn parse_inline(spec: &str) -> Result<Comprehension, SpecConvertError>
Expand description

Parse a single inline for-clause string — possibly multi-clause, e.g. "k in 1..10, limit in [1, 2, 3]" — into the algebra-layer AlgebraAst.

The canonical entry for consumers that hold only the for-clause text (no separate where / order): both scenario- and phase-level for_each in a host route through this, so the comprehension grammar has a single owner (polydat) rather than ad-hoc var in expr splits scattered in the runtime.