[swift-dev] swift module format

John McCall rjmccall at apple.com
Fri Aug 25 01:37:22 CDT 2017

> On Aug 25, 2017, at 2:34 AM, Slava Pestov <spestov at apple.com> wrote:
>> On Aug 24, 2017, at 10:56 PM, John McCall via swift-dev <swift-dev at swift.org <mailto:swift-dev at swift.org>> wrote:
>> Or if you really want to avoid the FFI, you could take our current ASTDumper output, which is currently pseudo-machine-readable, and make it actually machine-readable.  The elegant approach there would be to take the entire dumper and remove its pervasive dependence on an output stream; instead, it would be rewritten to make calls on a SAX-like streaming interface, and there would just be a standard implementation that formatted things as XML / JSON / our weird s-expression format.
> … I would love it if ASTDumper supported a Clang-like tree view in addition to (or instead of, if we also get JSON output?) the faux s-expression output. I know I’m supposed to like Lisp, but I personally find our dump output rather hard to read.

Yeah, it would be a great design goal that this output could be fed into various standard visualization tools.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170825/fc1825a2/attachment.html>

More information about the swift-dev mailing list