https://github.com/arakelian/graphql-parser
GraphQL Lexer and Parser generated using ANTLR grammar
https://github.com/arakelian/graphql-parser
antlr4 grammar graphql graphql-java java java-8 lexer parser
Last synced: 2 months ago
JSON representation
GraphQL Lexer and Parser generated using ANTLR grammar
- Host: GitHub
- URL: https://github.com/arakelian/graphql-parser
- Owner: arakelian
- License: apache-2.0
- Created: 2017-05-12T01:07:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T00:56:56.000Z (over 6 years ago)
- Last Synced: 2025-01-16T20:57:09.015Z (4 months ago)
- Topics: antlr4, grammar, graphql, graphql-java, java, java-8, lexer, parser
- Language: Java
- Size: 158 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graphql-parser
Low-level GraphQL parser and lexer generated using ANTLR grammar.
The grammar was [originally based on](https://github.com/graphql-java/graphql-java/blob/master/src/main/antlr/Graphql.g4) the GraphQL grammar defined by the [graphql-java](https://github.com/graphql-java/graphql-java) project.
This project separates the lexer and parser grammars, and has additional changes to enable better runtime validation.
## Installation
The library is available on Maven Central
### Maven
Add the following to your `pom.xml`:
```xml
central
Central Repository
http://repo.maven.apache.org/maven2
true
...
com.arakelian
graphql-parser
1.1.0
test```
### Gradle
Add the following to your `build.gradle`:
```groovy
repositories {
mavenCentral()
}dependencies {
testCompile 'com.arakelian:graphql-parser:1.1.0'
}
```## Licence
Apache Version 2.0