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:

  1. "" is received via path

  2. ["foo", "bar.baz"] is sent via parsed

Keywords: unescape, node

Input ports

  • path: string

    Receives a serialized tree path in canonical format. Examples:

    • ""

    • "foo"

    • "foo.b\.r"

Output ports

  • parsed: (string or number)[]

    Sends tree path. (Array of strings and numbers.) Example: ["foo", 0, "bar"]

Last updated