ziman / lightyear

Parser combinators for Idris
Other
238 stars 43 forks source link

JSON example #9

Closed timjb closed 10 years ago

timjb commented 10 years ago

Implemented a basic JSON parser. This is an interesting example because it involves mutually recursive parsers. Apparently one needs to wrap the recursive call with lazy : a -> a. Otherwise the binary produced by the Idris compiler eats a lot of memory and fails.