JSON recursive regular expression constructor from jsonCFG
.
jsonRE'
= compact
(cfgToRE
jsonNames
jsonCFG
)
The conversion doesn't optimize the resulting regular expression,
but is relatively fast.
>>>
size (cfgToRE jsonNames jsonCFG)
232
jsonRE
is pre-calculated variant.
>>>
size jsonRE
205