A powerful Swift framework for parsing and analyzing code syntax with support for multiple languages, with a focus on Markdown parsing.
- Swift 6.0 or later
- iOS 17.0+ / macOS 14.0+
- Xcode 15.0+ (for iOS/macOS development)
# Open the Swift Package in Xcode
open Package.swift# Build the project
swift build
# Run the showcase application
swift run CodeParserShowCase
# Run tests
swift testThis project uses apple/swift-format for code formatting.
The project already includes swift-format as a dependency in Package.swift.
To format all Swift files in the project:
./format.shOr run swift-format commands manually:
# Format files in-place
swift run swift-format format --in-place --recursive Sources/ Tests/
# Lint files (check for formatting issues without modifying)
swift run swift-format lint --recursive Sources/ Tests/
# Format a specific file
swift run swift-format format --in-place path/to/file.swiftThe formatting rules are configured in .swift-format file in the project root. You can modify this file to customize the formatting style according to your preferences.