Skip to content

rarestype/gram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

127 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍫   gram   🍫

high-performance constructive parsing, in pure swift

documentation and api reference

Requirements

The gram library requires Swift 5.8 or later.

Platform Status
💬 Documentation Status
🐧 Linux Status
🍏 Darwin Status
🍏 Darwin (iOS) Status
🍏 Darwin (tvOS) Status
🍏 Darwin (visionOS) Status
🍏 Darwin (watchOS) Status

Adding gram as a dependency

To use gram in a project, add the following to your Package.swift file:

let package: Package = .init(
    ...
    dependencies: [
        // other dependencies
        .package(url: "https://github.com/rarestype/gram", from: "1.0.0"),
    ],
    targets: [
        .target(
            name: "example",
            dependencies: [
                .product(name: "Grammar", package: "gram"),
                // other dependencies
            ]
        ),
        // other targets
    ]
)

About

debuggable parsing tools for performance-sensitive libraries

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors