purec
purec copied to clipboard
Compile pure-c using pure-c
Depends at least on #12, #10. This is a distant goal.
Probably the biggest hold up at this very moment is porting purescript-strings
(#34 ). That frightens me more than parsing the corefn JSON.
Another hold up might be that purescript-corefn is currently written using purescript-foreign. Perhaps purescript-argonaut would be an easier alternative?
Argonaut at least gives you a foreign import
hook for a Json parser, but the default parsers are not stack safe since they assume Either String
, so it will still require a little work. It also uses Foreign.Object
as the hash map representation, so that is an additional dependency to work out.