@@ -11,7 +11,7 @@ ambiguity.
11
11
12
12
A context-free grammar consists of a number of productions. Each production has
13
13
an 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
15
15
its right-hand side.
16
16
17
17
Starting 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
21
21
replaced by terminal characters.
22
22
23
23
Terminals 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
26
26
{"Space (U+0020)"}. Sequences of Unicode characters only appear in syntactic
27
27
grammars and represent a {Name} token of that specific sequence.
28
28
@@ -46,14 +46,14 @@ ListOfLetterA :
46
46
- ListOfLetterA ` a `
47
47
- ` a `
48
48
49
- ## Lexical and Syntactical Grammar
49
+ ## Lexical and Syntactic Grammar
50
50
51
51
The GraphQL language is defined in a syntactic grammar where terminal symbols
52
52
are tokens. Tokens are defined in a lexical grammar which matches patterns of
53
53
source characters. The result of parsing a source text sequence of Unicode
54
54
characters first produces a sequence of lexical tokens according to the lexical
55
55
grammar which then produces abstract syntax tree (AST) according to the
56
- syntactical grammar.
56
+ syntactic grammar.
57
57
58
58
A lexical grammar production describes non-terminal "tokens" by patterns of
59
59
terminal Unicode characters. No "whitespace" or other ignored characters may
@@ -63,18 +63,18 @@ definition.
63
63
64
64
Word :: Letter+
65
65
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.
70
70
71
71
Sentence : Word+ ` . `
72
72
73
73
## Grammar Notation
74
74
75
75
This specification uses some additional notation to describe common patterns,
76
76
such 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
78
78
and their expanded definitions in the context-free grammar.
79
79
80
80
** Constraints**
0 commit comments