From af5c288b1f4f833a07c12b08e2047a37c10b3231 Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Thu, 16 Jul 2015 17:59:23 -0700 Subject: [PATCH] Explain unicode and source input --- Section 8 -- Grammar.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Section 8 -- Grammar.md b/Section 8 -- Grammar.md index cf73bde03..736ca6264 100644 --- a/Section 8 -- Grammar.md +++ b/Section 8 -- Grammar.md @@ -87,6 +87,19 @@ For example: NonBooleanName : Name but not `true` or `false` +## Source Text + +GraphQL documents are expressed as a sequence of +[Unicode](http://unicode.org/standard/standard.html) code points. + +However, with few exceptions, most of GraphQL is expressed only in the original +ASCII range so as to be as widely compatible with as many existing tools, +languages, and serialization formats as possible. Other than the ignored Unicode +code points, Non-ASCII Unicode code points are only found within {StringValue}. + +SourceCharacter : "Any Unicode code point" + + ## Ignored Source Before and after every lexical token may be any amount of ignored source @@ -128,7 +141,7 @@ LineTerminator : Comment : - `#` CommentChar* -CommentChar : "Any character" but not LineTerminator +CommentChar : SourceCharacter but not LineTerminator ## Tokens @@ -188,7 +201,7 @@ StringValue : - `"` StringCharacter+ `"` StringCharacter : - - "Any character" but not `"` or \ or LineTerminator + - SourceCharacter but not `"` or \ or LineTerminator - \ EscapedUnicode - \ EscapedCharacter