Skip to main content

Crate libgraphql_parser

Crate libgraphql_parser 

Source
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§

smallvec
Creates a SmallVec containing the arguments.

Structs§

GraphQLErrorNote
An error note providing additional context about an error.
GraphQLParseError
A parse error with location information and contextual notes.
GraphQLParser
A recursive descent parser for GraphQL documents.
GraphQLSourceSpan
Represents a span of source text from start to end position.
GraphQLTokenStream
Streaming lexer that produces GraphQLTokens given some GraphQLTokenSource with a bounded lookahead buffer.
ParseResult
The result of a parsing operation.
SmallVec
A Vec-like container that can store a small number of elements inline.
SourcePosition
Source position information for parsing, with dual column tracking.

Enums§

DefinitionKind
The kind of definition found in a GraphQL document.
DocumentKind
The kind of GraphQL document being parsed.
GraphQLErrorNoteKind
The kind of an error note (determines how the note is rendered).
GraphQLParseErrorKind
Categorizes parse errors for programmatic handling.
GraphQLStringParsingError
Error returned when parsing a GraphQL string value fails.
ReservedNameContext
Contexts where certain names are reserved in GraphQL.
ValueParsingError
Errors that occur when parsing literal values.

Type Aliases§

GraphQLErrorNotes
Type alias for error notes.