Skip to content

dralletje/tree-sitter-graphql

Repository files navigation

tree-sitter-graphql

Attempt at a graphql grammar for tree-sitter.
Install with

npm install tree-sitter-graphql

I think I have the whole ast defined, but please let me know (or send a PR!) if I have missed something. I have all the rules defined with their names from the graphql spec (https://facebook.github.io/graphql/draft), so you can look at those and write an Atom grammar.

I didn't hide any rule: (http://tree-sitter.github.io/tree-sitter/creating-parsers#hiding-rules)
I feel like it is useful to have rules like Value (for when you don't want to style those individually), and not very distracting either. At least not for graphql, which is quite simple.

Thanks for reading,
Michiel Dral

About

Graphql grammar for tree-sitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published