[swift-dev] libSwiftAST (a-la-libclang) ?
hhaskins at apple.com
Fri Aug 18 16:10:55 CDT 2017
We’ve just released an initial implementation of libSyntax for Swift that will be accessible in a toolchain in the near future.
With it, you’d be able to generate Syntactic nodes on the fly, automatically, from Swift. I’d love for it to be applied to a fuzzer — I wanted to write something like that myself!
I’ll reach out offline and talk to you more about this.
> On Aug 18, 2017, at 3:45 AM, Davide Italiano via swift-dev <swift-dev at swift.org> wrote:
> as part of a fuzzing project I have some needs to parse/mutate the AST.
> When I work with clang I generally use libclang (RecursiveASTVisitor)
> but I'm not aware of any Swift equivalent officially released as part
> of apple/swift ( the best I was able to find is this repo
> https://github.com/yanagiba/swift-ast ).
> Does such thing exist? I'd prefer a C++ library as I'm not really Swift savvy.
> swift-dev mailing list
> swift-dev at swift.org
More information about the swift-dev