Skip to content

Commit 740515a

Browse files
authored
State greediness of GraphQL
Explicitly state that the GraphQL grammar is greedy to clear up possible disambiguity. Closes #539
1 parent 972f2cb commit 740515a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/Appendix A -- Notation Conventions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ ListOfLetterA :
4343
- `a`
4444
- ListOfLetterA `a`
4545

46+
The GraphQL grammar is greedy; this means that when given a choice between two definitions
47+
in a production, the rule matching the longest sequence of tokens prevails.
4648

4749
## Lexical and Syntactical Grammar
4850

0 commit comments

Comments
 (0)