We are implementing a library to access TOML data via a "TOML path" like foo[1].bar, similar to toml-cli. Reusing the key parser provided by the public interface is tricky but possible and would be desired. But for additional feature requirements (like wildcards) we cannot use existing parser, and we cannot create a key in our parser because we need to set Repr.
This patch makes more public relevant parts for working with Repr so that we can create keys within our parser.
We are implementing a library to access TOML data via a "TOML path" like
foo[1].bar
, similar to toml-cli. Reusing the key parser provided by the public interface is tricky but possible and would be desired. But for additional feature requirements (like wildcards) we cannot use existing parser, and we cannot create a key in our parser because we need to setRepr
.This patch makes more public relevant parts for working with
Repr
so that we can create keys within our parser.