Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niw/graphqllanguage
A simple GraphQL language parser library for Swift.
https://github.com/niw/graphqllanguage
graphql swift
Last synced: 5 days ago
JSON representation
A simple GraphQL language parser library for Swift.
- Host: GitHub
- URL: https://github.com/niw/graphqllanguage
- Owner: niw
- License: mit
- Created: 2020-12-28T01:46:30.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-03T01:41:13.000Z (over 2 years ago)
- Last Synced: 2023-04-13T15:06:59.294Z (over 1 year ago)
- Topics: graphql, swift
- Language: Swift
- Homepage:
- Size: 675 KB
- Stars: 22
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
GraphQL Language
================A simple GraphQL language parser library for Swift.
![GraphQL Language](Resources/GraphQLLanguage.png)
This library provides a plain Swift representation of GraphQL language
implemented by using [ANTLR4 GraphQL Grammar](https://github.com/niw/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](Examples/Example.graphql),
then print Swift presentation of it.Usage
-----Add the following lines to your `Package.swift` or use Xcode “Add Package Dependency…” menu.
```swift
// 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](Vendor/antlr4).
See license file under each directory.