pub fn classify_group(body: &str) -> Result<BindPoint, String>Expand description
What a { … } group in an op field is, from its trimmed body:
{:=expr}or{:=expr:=}: an inline definition.{name:*}or{name:<type>}: a reference with an lvalue assertion.- a body with a call or an operator (
{mod(cycle, 10)},{a + b}): an inline definition. {name},{a.b},{input:name},{k_{k}_limits}: a reference.
Anything else is refused: a group that is none of these is text
the workload meant literally (a regex quantifier {8}, a set
{0, 1}, a format spec {:5.2}), and reading it as a bind point
would rewrite the field. The error says how to write it as text
and how to write it as an expression.
Also fails on a {name:<type>} assertion whose type is a spelling
polydat retired or a type a workload may not assert (see
split_lvalue_spec), and on a retired qualifier spelling.