Expand description
A GraphQL parsing library to parse schema documents, executable documents, and documents that mix both together.
This crate provides a unified token-based parser infrastructure with support for multiple token sources (string input, proc-macro input, etc.).
Modules§
- ast
- token
- This module provides the core token types used by GraphQL lexers and the parser.
- token_
source - Token source trait and implementations.
Macros§
Structs§
- GraphQL
Error Note - An error note providing additional context about an error.
- GraphQL
Parse Error - A parse error with location information and contextual notes.
- GraphQL
Parser - A recursive descent parser for GraphQL documents.
- GraphQL
Source Span - Represents a span of source text from start to end position.
- GraphQL
Token Stream - Streaming lexer that produces
GraphQLTokens given someGraphQLTokenSourcewith a bounded lookahead buffer. - Parse
Result - The result of a parsing operation.
- Small
Vec - A
Vec-like container that can store a small number of elements inline. - Source
Position - Source position information for parsing, with dual column tracking.
Enums§
- Definition
Kind - The kind of definition found in a GraphQL document.
- Document
Kind - The kind of GraphQL document being parsed.
- GraphQL
Error Note Kind - The kind of an error note (determines how the note is rendered).
- GraphQL
Parse Error Kind - Categorizes parse errors for programmatic handling.
- GraphQL
String Parsing Error - Error returned when parsing a GraphQL string value fails.
- Reserved
Name Context - Contexts where certain names are reserved in GraphQL.
- Value
Parsing Error - Errors that occur when parsing literal values.
Type Aliases§
- GraphQL
Error Notes - Type alias for error notes.