<div dir="ltr">Possibly protobuf or capn proto would be much more clean alternatives to json. I was working with interpreting instruction semantics a while back, and you shouldn't have to write a parser to get the data structure back into coherent form, you can get what you want automatically and have the structure isolated into a common schema.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 20, 2015 at 9:22 AM, Stephen Cross <span dir="ltr"><<a href="mailto:scross@scross.co.uk" target="_blank">scross@scross.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> reproduce the code in that language<br>
<br>
</span>Is the intention to exactly reproduce the original source code? Or<br>
some code that's functionally equivalent?<br>
<div><div class="h5"><br>
On Sat, Jun 20, 2015 at 8:05 AM, Alec Taylor <<a href="mailto:alec.taylor6@gmail.com">alec.taylor6@gmail.com</a>> wrote:<br>
> Considering engineering my own code-generator. If I do go ahead, will<br>
> open-source the end result.<br>
><br>
> Needs to read [parse] one language, and output JSON (conformant to a<br>
> specific JSON-schema).<br>
><br>
> Then needs to read JSON, and reproduce the code in that language, and<br>
> [possibly] merge the generated code with existing code.<br>
><br>
> Languages I'm looking to support are all rather popular (Python, Go, Rust,<br>
> JavaScript).<br>
><br>
> Any pointers—e.g.: specific LLVM libraries and sub-projects to use—would be<br>
> appreciated.<br>
><br>
> Thanks<br>
><br>
</div></div>> _______________________________________________<br>
> LLVM Developers mailing list<br>
> <a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
><br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" rel="noreferrer" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>