An overview of SwiftSyntax

The Compiler

https://www.draw.io/
AST generated after the parsing the source file

libSyntax

SwiftSyntax API

High-level API

SyntaxFactory

With APIs

SyntaxVisitors

SyntaxRewriters

Conclusion

References

  1. SwiftSyntax Repo. https://github.com/apple/swift-syntax
  2. apple/swift/lib/Syntax Docs and examples. https://github.com/apple/swift/tree/master/lib/Syntax
  3. try! Swift NYC 2017 — Improving Swift Tools with libSyntax. https://www.youtube.com/watch?v=5ivuYGxW_3M
  4. Swift Forums. https://forums.swift.org

--

--

--

iOS Developer, Swift and OpenSource enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Which Hosting Service To Choose For Growing Businesses?

Meet the Team at GoustoTech — James Carson — Lead Platform Engineer

Starting with Laravel? What is the Best Way to Learn Laravel?

from Twitter https://twitter.com/build_online

Creating a scripting environment for Airtable that anyone can use

The Dawn of OpenXR

Python Computer Vision Tutorials — cv2 and mss basics / part 2

#forLoopUyo: A Recap

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Luciano Almeida

Luciano Almeida

iOS Developer, Swift and OpenSource enthusiast

More from Medium

Test Doubles by example in Swift

Swift Package Manager (SwiftPM/SPM) — Creating and Publishing one

Namespace an excuse to talk about global variables

Swift Concurrency Task Management