All Projects → niw → GraphQLLanguage

niw / GraphQLLanguage

Licence: MIT License
A simple GraphQL language parser library for Swift.

Programming Languages

swift
15916 projects
Makefile
30231 projects

Labels

GraphQL Language

A simple GraphQL language parser library for Swift.

GraphQL Language

This library provides a plain Swift representation of GraphQL language implemented by using ANTLR4 GraphQL Grammar, that is a language independent implementation of ANTLR4 grammar for GraphQL language.

Try it

Open Examples/Example.xcodeproj in Xcode and Run Example scheme.

It builds a tiny command line tool and runs it for Example.graphql, then print Swift presentation of it.

Usage

Add the following lines to your Package.swift or use Xcode “Add Package Dependency…” menu.

// In your `Package.swift`

dependencies: [
    .package(name: "GraphQLLanguage", url: "https://github.com/niw/GraphQLLanguage", ...),
    ...
],
targets: [
    .target(
        name: ...,
        dependencies: [
            .product(name: "GraphQLLanguage", package: "GraphQLLanguage"),
            ...
        ]
    ),
    ...
]

License

This library contains multiple products such as ANTLR4 runtime. See license file under each directory.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].