mm_parse_formula() parses a formula string through the Rust formula
parser and returns its canonical Display rendering. This is the Phase 0
round-trip primitive: equivalent formula spellings produce identical
canonical strings, so equivalence-class testing in R is just string
comparison on the canonical form.
Arguments
- formula
A single character string (length 1, non-NA, non-empty), or a one-sided / two-sided R
formulaobject. Rformulaobjects are coerced to character viaformat()before parsing.