MyGit

swiftlang/swift-syntax

Fork: 413 Star: 3238 (更新于 2024-11-05 09:49:36)

license: Apache-2.0

Language: Swift .

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.

最后发布版本: 600.0.0-prerelease-2024-09-04 ( 2024-09-06 07:39:45)

GitHub网址

Swift Syntax

The swift-syntax package is a set of libraries that work on a source-accurate tree representation of Swift source code, called the SwiftSyntax tree. The SwiftSyntax tree forms the backbone of Swift’s macro system – the macro expansion nodes are represented as SwiftSyntax nodes and a macro generates a SwiftSyntax tree to be inserted into the source file.

Documentation

You can read SwiftSyntax’s documentation on swiftpackageindex.com.

A great way to interactively explore the SwiftSyntax tree of a source file is https://swift-ast-explorer.com, developed by @kishikawakatsumi.

A set of example usages of swift-syntax can be found in Examples.

Releases

Releases of SwiftSyntax are aligned with corresponding language and tooling releases, for example the major version 509 of swift-syntax is aligned with Swift 5.9.

To depend on swift-syntax in a SwiftPM package, add the following to your Package.swift.

dependencies: [
  .package(url: "https://github.com/swiftlang/swift-syntax.git", from: "<#latest swift-syntax tag#>"),
],

To add swift-syntax as a dependency of your Xcode project, go to the Package Dependencies tab of your Xcode project, click the plus button and search for https://github.com/swiftlang/swift-syntax.git.

Reporting Issues

If you should hit any issues while using SwiftSyntax, we appreciate bug reports on GitHub Issue.

Contributing

Start contributing to SwiftSyntax see this guide for more information.

Bazel

SwiftSyntax provides an experimental Bazel build configuration, maintained by Keith Smiley. To use it you can pull the source archive from the relevant release tag into your WORKSPACE and depend on the libraries you need from the BUILD.bazel file. Each library also has an associated Library_opt target (such as SwiftSyntax_opt) which forces SwiftSyntax to always build with optimizations enabled. This may help local runtime performance at the cost of debuggability, and initial build time. Please tag any issues related to the Bazel configuration with the label "Bazel".

License

Please see LICENSE for more information.

最近版本更新:(数据更新于 2024-09-12 13:05:20)

2024-09-06 07:39:45 600.0.0-prerelease-2024-09-04

2024-08-15 09:16:51 600.0.0-prerelease-2024-08-14

2024-08-02 07:45:40 510.0.3

2024-07-25 06:11:13 600.0.0-prerelease-2024-07-24

2024-06-19 04:59:40 600.0.0-prerelease-2024-06-12

2024-05-08 00:24:18 510.0.2

2024-03-09 08:15:33 510.0.1

2024-03-07 00:15:51 swift-5.10-RELEASE

2024-03-02 04:21:16 510.0.0

2024-01-23 09:41:45 509.1.1

swiftlang/swift-syntax同语言 Swift最近更新仓库

2024-11-19 05:05:44 whoeevee/EeveeSpotify

2024-11-08 09:08:36 Aidoku/Aidoku

2024-11-07 09:51:16 argmaxinc/WhisperKit

2024-11-01 03:30:19 wordpress-mobile/WordPress-iOS

2024-10-30 03:29:03 jordanbaird/Ice

2024-10-24 02:02:47 Artificial-Pancreas/iAPS