mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
f3855d7100
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
17 lines
307 B
Idris
17 lines
307 B
Idris
||| The JSON language, as described at https://json.org/
|
|
module Language.JSON
|
|
|
|
import Language.JSON.Lexer
|
|
import Language.JSON.Parser
|
|
|
|
import public Language.JSON.Data
|
|
|
|
import public Text.Bounded
|
|
|
|
%default total
|
|
|
|
||| Parse a JSON string.
|
|
export
|
|
parse : String -> Maybe JSON
|
|
parse x = parseJSON !(lexJSON x)
|