<div dir="ltr">On Thu, Aug 1, 2013 at 4:00 PM, Vane, Edwin <span dir="ltr"><<a href="mailto:edwin.vane@intel.com" target="_blank">edwin.vane@intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
> -----Original Message-----<br>
> From: Manuel Klimek [mailto:<a href="mailto:klimek@google.com">klimek@google.com</a>]<br>
</div><div class="im">> Sent: Thursday, August 01, 2013 9:40 AM<br>
> To: Vane, Edwin<br>
</div><div class="im">> Cc: Alex Rosenberg; Clang Dev List (<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>)<br>
> Subject: Re: [cfe-dev] RFC: YAML as an intermediate format for<br>
> clang::tooling::Replacement data on disk<br>
<br>
...<br>
<br>
</div><div class="im">> Note that the compilation databases use the YAML parser. JSON is a subset of<br>
> YAML. I'd also (slightly) prefer to use JSON over YAML for the intermediate<br>
> representation.<br>
<br>
</div>Is it enough to hard-code the output into JSON format and just use the YAML parser for reading? Or should we aim for a general purpose JSON reader/writer as with YAML in LLVM? Either way, I think the general purpose parser is beyond scope for what we want to achieve at this time with the migrator.<br>
</blockquote></div><br></div><div class="gmail_extra">I'm opposed to any "general purpose" parsing. Whether JSON is sufficient here is a question of definition ;) I'd define the interface to be JSON, and, like you suggest, output JSON and use the YAML parser for parsing.</div>
</div>