Skip to content

Instantly share code, notes, and snippets.

@vhxs
Created December 3, 2022 17:45
Show Gist options
  • Save vhxs/e090e8b1c35818880e00f555eab561bf to your computer and use it in GitHub Desktop.
Save vhxs/e090e8b1c35818880e00f555eab561bf to your computer and use it in GitHub Desktop.
Basic S-expression parsing in Haskell
-- 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