mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
11 lines
465 B
Plaintext
11 lines
465 B
Plaintext
negative_index_indicator = ${ "#-" }
|
|
array_offset = ${ ASCII_DIGIT+ }
|
|
array_locator = ${ "[" ~ negative_index_indicator? ~ array_offset ~ "]" }
|
|
relaxed_array_locator = ${ negative_index_indicator? ~ array_offset }
|
|
|
|
root = ${ "$" }
|
|
json_path_key = ${ identifier | string }
|
|
path = ${ SOI ~ root ~ (array_locator | "." ~ json_path_key)* ~ EOI }
|
|
|
|
relaxed_path = ${ SOI ~ ((root ~ (array_locator | "." ~ json_path_key)*) | json_path_key | relaxed_array_locator) ~ EOI }
|