Created
December 3, 2022 17:45
-
-
Save vhxs/e090e8b1c35818880e00f555eab561bf to your computer and use it in GitHub Desktop.
Basic S-expression parsing in Haskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- sexpr parsing in Haskell | |
import Data.SCargot | |
import Data.SCargot.Language.Basic | |
import Data.Text | |
main = do | |
print (decode basicParser (pack "(- (+ 1 2) 3)")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment