You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented a simple JSON backend that can dump internal ASTs into JSON files.
The goal is to convert the AST into a cross-language representation that it can be used by languages other than Ocaml.
Would you guys be interested in adding this feature into your repo?
We currently have a dependency on the Yojson library for all our JSON handling. It might be better to write a 'a ast -> Yojson.Safe.t function, then using Yojson's printing function to produce the final string. That function could also be parameterised by a 'a -> Yojson.Safe.t parameter for the annotations (or using a module to parameterise everything without passing an extra argument explicitly).
I've implemented a simple JSON backend that can dump internal ASTs into JSON files.
The goal is to convert the AST into a cross-language representation that it can be used by languages other than Ocaml.
Would you guys be interested in adding this feature into your repo?
https://github.com/wxrdnx/sail/tree/json/src/sail_json_backend
The text was updated successfully, but these errors were encountered: