Zulip Chat Archive
Stream: new members
Topic: JSON libraries?
Stuart Hungerford (Sep 12 2022 at 06:05):
Hi all — I’m interested in using Lean as a general purpose FP language. Has anyone created a library for parsing JSON? Or maybe YAML? I think there’s an example JSON parser in the Lean 4 test suite?
Eric Wieser (Sep 12 2022 at 06:38):
There is a docs#json library in Lean3 core
Eric Wieser (Sep 12 2022 at 06:39):
Although note it does not support parsing arbitrary-precision integers
Mario Carneiro (Sep 12 2022 at 06:41):
There is a JSON parser in lean 4 core too (docs4#Lean.Json.parse) - it's used to implement the LSP server
Mario Carneiro (Sep 12 2022 at 06:42):
No YAML as far as I know
Stuart Hungerford (Sep 12 2022 at 08:12):
Excellent!
Last updated: Dec 20 2023 at 11:08 UTC