[swift-dev] swift module format

2017-08-22 Thread Coder via swift-dev
Hello, I’m working on extracting information from .swiftmodule files. Currently I can read all blocks and records but I’m having trouble identifying all DECLs in the DECLS_AND_TYPES_BLOCK. Below is a bcanalyzer dump of a swifmodule file created from this one line of code: class Example {} A

Re: [swift-dev] swift module format

2017-08-24 Thread Coder via swift-dev
wrote: >> >> Hi, >> >> What are you trying to do exactly ? Have you considered reading the decls >> with a tool using the C++ APIs (load a module and iterate over the decls) ? >> I think that would be easier and more future-proof. >> >>> On

Re: [swift-dev] swift module format

2017-08-27 Thread Coder via swift-dev
> You say this, but... I really hate for you to spend a lot of time on > something that is so low-level and that is so likely to be unstable. I think > it would make a lot more sense to write a C API to the AST and talk to it > over the OCaml FFI. Or if you really want to avoid the FFI, you co