Last active
October 20, 2016 22:34
-
-
Save AndreaCrotti/2482371 to your computer and use it in GitHub Desktop.
haskell attempts
This file contains 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
module Parser where | |
-- import Text.ParserCombinators.Parsec | |
type Var = String | |
type Value = String | |
type Assign = (Var, Value) | |
type Object = [Assign] | |
type Array = [Value] | |
open_object = "{" | |
close_object = "}" | |
open_array = "[" | |
close_array = "]" | |
list_delim = "," | |
assign_delim = ":" | |
quote = "\"" | |
object_sample = "{\"var\": \"val\"}" | |
array_sample = "[\"x1\", \"x2\"]" | |
main = do | |
print "hello json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment