skepller@lemmy.world to Programmer Humor@programming.devEnglish · 6 hours agoTOMLlemmy.worldimagemessage-square54fedilinkarrow-up1264arrow-down14 cross-posted to: programmerhumor@lemmy.ml
arrow-up1260arrow-down1imageTOMLlemmy.worldskepller@lemmy.world to Programmer Humor@programming.devEnglish · 6 hours agomessage-square54fedilink cross-posted to: programmerhumor@lemmy.ml
minus-squareKindaABigDyl@programming.devlinkfedilinkarrow-up2·edit-22 hours agoHere is the grammar: <json> ::= <value> | <fn-def> <json> <value> ::= <object> | <array> | <string> | <number> | <bool> | <fn-def> | <fn-app> | "null" <object> ::= "{" [ <member> { "," <member> } ] "}" <member> ::= <string> ":" <value> <string> ::= "\"" { <char> } "\"" <char> ::= (ASCII other than "\"", "\\", 0-31, 127-159) | (Unicode other than ASCII) | ( "\\" ( "\"" | "\\" | "/" | "b" | "f" | "n" | "r" | "t" | "u" <hex> <hex> <hex> <hex> ) <hex> ::= /A-Fa-f0-9/ <array> ::= "[" [ <value> { "," <value> } ] "]" <number> ::= <integer> [ <fraction> ] [ <exponent> ] <integer> ::= "0" | /[1-9]+/ | "-" <integer> <fractional> ::= "." /[0-9]+/ <exponent> ::= ("E" | "e") [ "-" | "+" ] /[0-9]+/ <bool> ::= "true" | "false" <fn-def> ::= "(" <ident> { <ident> } ("->" <value> | ":" <string> <string>) ")" <ident> ::= <startc> { <identc> } <startc> ::= /A-Za-z_/ or non-ASCII Unicode <identc> ::= <startc> | /[0-9-]/ <fn-app> ::= "(" <ident> { <value> } ")" <var> ::= "$" <ident>
Here is the grammar: