Size of JSON grammar, 22.
Modulerere-0.2.0.2Haskell2010
RERE.Examples.JSON
JSON grammar example.
- 1 type
- 4 values
- Packagerere-0.2.0.2
- Exports5
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceJSON.hs
import REREJSON 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 jsonRE205
Names of jsonCFG productions.
JSON grammar