Path parser
Last updated
Last updated
[data/tree/Path parser]
Parses a canonical string representation of a tree path. Tree paths are dot-separated, and dots in components are escaped with backslash. Examples:
"foo.bar.baz" is received via path
["foo", "bar.baz"] is sent via parsed
Keywords: unescape, node
path: string
Receives a serialized tree path in canonical format. Examples:
"foo.bar.baz"
"foo"
"foo.b\.r"
parsed: (string or number)[]
Sends tree path. (Array of strings and numbers.) Example: ["foo", 0, "bar"]