Skip to content

Instantly share code, notes, and snippets.

@AndreaCrotti
Last active October 20, 2016 22:34
Show Gist options
  • Save AndreaCrotti/2482371 to your computer and use it in GitHub Desktop.
Save AndreaCrotti/2482371 to your computer and use it in GitHub Desktop.
haskell attempts
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