An open API service indexing awesome lists of open source software.

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

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