pub fn parse_path(s: &str) -> Result<Vec<Segment>, String>
Parse a dotted/indexed path expression into a list of segments.
Returns Err with a message pointing at the character offset on failure.
Err