dts 0.6.14

A tool to deserialize, transform and serialize data between different encodings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
WHITESPACE = _{ " " | "\t" | "\r\n" | "\n"}

StringLit   = _{ StringLitDq | StringLitSq }
StringLitDq = _{ "\"" ~ StringDq ~ "\"" }
StringLitSq = _{ "'" ~ StringSq ~ "'" }
StringDq    =  { (("\\" ~ ("\"" | "\\")) | (!"\"" ~ ANY))* }
StringSq    =  { (("\\" ~ ("'" | "\\")) | (!"'" ~ ANY))* }

ElementAccess = _{ ("." ~ Key) | KeyBrackets }
Index         = ${ ASCII_DIGIT+ }
Key           = ${ (ASCII_ALPHANUMERIC | "_")* }
KeyBrackets   = _{ "[" ~ (StringLit | Index) ~ "]" }

Path  = _{ Key ~ ElementAccess* }
Parts = _{ SOI ~ Path ~ EOI }