RFC 3 / Accepted

Clarify that lexing is greedy

Opened on2019-07-23
Merged on2020-01-10

At a glance

Spec PR description

GraphQL syntactical grammars intend to be unambiguous. While lexical grammars should also be - there has historically been an assumption that lexical parsing is greedy. This is obvious for numbers and words, but less obvious for empty block strings.

Either way, the additional clarity removes ambiguity from the spec

Partial fix for #564 Fixes #572

Specifically addresses https://github.com/graphql/graphql-spec/pull/564#issuecomment-508714529

Timeline