/nosj

A grammar for parsing JSON right-to-left

Primary LanguageHTMLApache License 2.0Apache-2.0

NOSJ

(rhymes with Sausage)

A grammar for parsing JSON right-to-left.

For example, it recognizes

[ llun, { 32+e20.6: "rebmun" }, ""\\\n\" ]

but rejects invalid inputs like

"\"\\"

and

90

Take a gander at the railroad diagram, or try out some NOSJ using Paul Kline's BNF playground with this compatible grammar.