swift-syntax
A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code. (by apple)
cxx-interop-test
Small test app for C++ Interop with Swift. (by plotfi)
Our great sponsors
swift-syntax | cxx-interop-test | |
---|---|---|
2 | 2 | |
2,888 | 19 | |
2.5% | - | |
9.8 | 3.9 | |
3 days ago | 5 months ago | |
Swift | Swift | |
Apache License 2.0 | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
swift-syntax
Posts with mentions or reviews of swift-syntax.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-09-26.
-
Swift Syntax and Structured Editing Library
The whole compiler and the vast majority of the runtime are in C++. This module is intended to integrate with the compiler, and uses the compiler's own parsing code. That said, there are Swift bindings available as a separate library: https://github.com/apple/swift-syntax
cxx-interop-test
Posts with mentions or reviews of cxx-interop-test.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-01.
-
Swift and C++ interoperability workgroup announcement
Yes, it has been in the Swift compiler for some time now
The original flag was "-experimental-cxx-interop", now it is "-enable-cxx-interop"
See here for examples of it in use, including interop with the C++ std library types:
-
Swift Syntax and Structured Editing Library
For a real-world example of using this, here's a test repo from the core developers:
https://github.com/plotfi/cxx-interop-test
What are some alternatives?
When comparing swift-syntax and cxx-interop-test you can also consider the following projects:
sourcekit-lsp - Language Server Protocol implementation for Swift and C-based languages
alchemy - Modern, batteries included web framework for Swift.
alchemy - An experimental GUI framework for Rust, backed by per-platform native widgets. React, AppKit/UIKit inspired. EXPERIMENTAL, runs on Cocoa right now. ;P