pub fn parse_path(path: &str) -> PathExpr
Parse a dotted path: each numeric segment becomes an index, every other segment a key lookup.