path-value 0.1.5

Universal type and access property(s) by path
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
ident_char = @{ !"/" ~ ASCII_ALPHANUMERIC | "-" | "_" }

path_ident = { ident_char+ }

index = { ASCII_DIGIT+ }

path_index_ident = { ident_char+ ~ "[" ~ index ~ "]" }

sub_path = ${ path_index_ident | path_ident }

sub_paths = @{ (("/" ~ sub_path) | "/")+ }

path = _{ SOI ~ sub_paths ~ EOI }