GraphQL v0.2.0 GraphQL.Lang.Lexer

GraphQL lexer implemented with leex.

Tokenise a GraphQL query

iex> GraphQL.tokenize("{ hello }")
[{ :"{", 1 }, { :name, 1, 'hello' }, { :"}", 1 }]

Summary

Functions

Tokenize the input string into a stream of tokens

Functions

tokenize(input_string)

Tokenize the input string into a stream of tokens.

iex> GraphQL.tokenize("{ hello }")
[{ :"{", 1 }, { :name, 1, 'hello' }, { :"}", 1 }]