Path parser
[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
Input ports
path:
string
Receives a serialized tree path in canonical format. Examples:
"foo.bar.baz"
"foo"
"foo.b\.r"
Output ports
parsed:
(string or number)[]
Sends tree path. (Array of strings and numbers.) Example: ["foo", 0, "bar"]
Last updated