RFC 3 / Accepted

Clarify that lexing is greedy

Opened on
Merged on

At a glance

Project
GraphQL Spec
Identifier
#599
Stage
RFC 3 / Accepted
Champion
@leebyron
Updated
2022-07-01
Latest activity
Pull request merged on
Source

Pull request 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

January 2020

October 2019

September 2019

August 2019

  • Top comment edited on by leebyron
  • On the agenda for GraphQL WG

    12 listed attendees · 10 agenda items · 3 linked RFCs

    • Opening of the meeting
    • Introduction of attendees
    • Review previous meeting's action items and check progress on those
    • Review agenda (5m)
    • Determine volunteers for note taking (5m)
    • Parse ambiguity PR & greedy lexing PR (Lee, 10m) #598 #599
    • Number lexer follow restriction RFC (Lee, 10m) #601
    • libgraphqlparser (Erik) (10m)
    • GraphQL CATS (Michael Staib, et al, 10m)
    • ADD YOUR AGENDA ITEM ABOVE HERE

July 2019