@@ -11,7 +11,7 @@ ambiguity.
1111
1212A context-free grammar consists of a number of productions. Each production has
1313an abstract symbol called a "non-terminal" as its left-hand side, and zero or
14- more possible sequences of non-terminal symbols and or terminal characters as
14+ more possible sequences of non-terminal symbols and/ or terminal characters as
1515its right-hand side.
1616
1717Starting from a single goal non-terminal symbol, a context-free grammar
@@ -21,8 +21,8 @@ of the sequences it is defined by, until all non-terminal symbols have been
2121replaced by terminal characters.
2222
2323Terminals are represented in this document in a monospace font in two forms: a
24- specific Unicode character or sequence of Unicode characters (ie . {` = ` } or
25- {` terminal ` }), and prose typically describing a specific Unicode code- point
24+ specific Unicode character or sequence of Unicode characters (i.e . {` = ` } or
25+ {` terminal ` }), and prose typically describing a specific Unicode code point
2626{"Space (U+0020)"}. Sequences of Unicode characters only appear in syntactic
2727grammars and represent a {Name} token of that specific sequence.
2828
@@ -46,14 +46,14 @@ ListOfLetterA :
4646- ListOfLetterA ` a `
4747- ` a `
4848
49- ## Lexical and Syntactical Grammar
49+ ## Lexical and Syntactic Grammar
5050
5151The GraphQL language is defined in a syntactic grammar where terminal symbols
5252are tokens. Tokens are defined in a lexical grammar which matches patterns of
5353source characters. The result of parsing a source text sequence of Unicode
5454characters first produces a sequence of lexical tokens according to the lexical
5555grammar which then produces abstract syntax tree (AST) according to the
56- syntactical grammar.
56+ syntactic grammar.
5757
5858A lexical grammar production describes non-terminal "tokens" by patterns of
5959terminal Unicode characters. No "whitespace" or other ignored characters may
@@ -63,18 +63,18 @@ definition.
6363
6464Word :: Letter+
6565
66- A Syntactical grammar production describes non-terminal "rules" by patterns of
67- terminal Tokens. {WhiteSpace } and other {Ignored} sequences may appear before or
68- after any terminal {Token}. A syntactical grammar production is distinguished by
69- a one colon ` : ` definition.
66+ A Syntactic grammar production describes non-terminal "rules" by patterns of
67+ terminal Tokens. {Whitespace } and other {Ignored} sequences may appear before or
68+ after any terminal {Token}. A syntactic grammar production is distinguished by a
69+ one colon ` : ` definition.
7070
7171Sentence : Word+ ` . `
7272
7373## Grammar Notation
7474
7575This specification uses some additional notation to describe common patterns,
7676such as optional or repeated patterns, or parameterized alterations of the
77- definition of a non-terminal. This section explains these short-hand notations
77+ definition of a non-terminal. This section explains these shorthand notations
7878and their expanded definitions in the context-free grammar.
7979
8080** Constraints**
0 commit comments