Skip to content

Commit

Permalink
Explain unicode and source input
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron committed Jul 17, 2015
1 parent a20faeb commit af5c288
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Section 8 -- Grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -128,7 +141,7 @@ LineTerminator :
Comment :
- `#` CommentChar*

CommentChar : "Any character" but not LineTerminator
CommentChar : SourceCharacter but not LineTerminator


## Tokens
Expand Down Expand Up @@ -188,7 +201,7 @@ StringValue :
- `"` StringCharacter+ `"`

StringCharacter :
- "Any character" but not `"` or \ or LineTerminator
- SourceCharacter but not `"` or \ or LineTerminator
- \ EscapedUnicode
- \ EscapedCharacter

Expand Down

0 comments on commit af5c288

Please sign in to comment.