Tweaks and repairs
This commit is contained in:
parent
3360e013a4
commit
53e15bc46c
|
@ -2,7 +2,7 @@
|
|||
| *Document* | := | *Value* **ws** |
|
||||
| *Value* | := | **ws** (*Record* | *Collection* | *Atom* | *Embedded* | *Annotated*) |
|
||||
| *Collection* | := | *Sequence* | *Dictionary* | *Set* |
|
||||
| *Atom* | := | *Boolean* | *String* | *ByteString* | *QuotedSymbol* | *Symbol* | *Number* |
|
||||
| *Atom* | := | *Boolean* | *ByteString* | *String* | *QuotedSymbol* | *Symbol* | *Number* |
|
||||
| **ws** | := | (**space** | **tab** | **cr** | **lf** |`,`)<sup>⋆</sup> |
|
||||
|
||||
{:.postcard-grammar}
|
||||
|
@ -13,9 +13,9 @@
|
|||
|
||||
{:.postcard-grammar}
|
||||
| *Boolean* | := | `#t`|`#f` |
|
||||
| *String* | := | `"` (*unescaped* |`|`| (*escaped* |`\"`|`\u`*hex* *hex* *hex* *hex*))<sup>⋆</sup> `"` |
|
||||
| *ByteString* | := | `#"`*binchar*<sup>⋆</sup> `"`|`#x"` (**ws** | *hex* *hex*)<sup>⋆</sup> **ws**`"`|`#[` (**ws** | *base64char*)<sup>⋆</sup> **ws**`]` |
|
||||
| *QuotedSymbol* | := | `|` (*unescaped* |`"`| (*escaped* |`\|`|`\u`*hex* *hex* *hex* *hex*))<sup>⋆</sup> `|` |
|
||||
| *ByteString* | := | `#"`*binchar*<sup>⋆</sup> `"`|`#x"` (**ws** *hex* *hex*)<sup>⋆</sup> **ws**`"`|`#[` (**ws** | *base64char*)<sup>⋆</sup> **ws**`]` |
|
||||
| *String* | := | `"` (« any unicode scalar value except `\` or `"` » | *escaped* |`\"`)<sup>⋆</sup> `"` |
|
||||
| *QuotedSymbol* | := | `|` (« any unicode scalar value except `\` or `|` » | *escaped* |`\|`)<sup>⋆</sup> `|` |
|
||||
| *Symbol* | := | (`A`..`Z`|`a`..`z`|`0`..`9`| *sympunct* | *symuchar*)<sup>+</sup> |
|
||||
| *Number* | := | *Float* | *Double* | *SignedInteger* |
|
||||
| *Float* | := | *flt* (`f`|`F`) |`#xf"` (**ws** *hex* *hex*)<sup>4</sup> **ws**`"` |
|
||||
|
@ -25,13 +25,12 @@
|
|||
{:.postcard-grammar}
|
||||
| *Embedded* | := | `#!`*Value* |
|
||||
| *Annotated* | := | *Annotation* *Value* |
|
||||
| *Annotation* | := | `@`*Value* |`;`« any unicode scalar value except **cr** or **lf** » (**cr** | **lf**) |
|
||||
| *Annotation* | := | `@`*Value* |`;`« any unicode scalar value except **cr** or **lf** »<sup>⋆</sup> (**cr** | **lf**) |
|
||||
|
||||
{:.postcard-grammar}
|
||||
| *escaped* | := | `\\`|`\/`|`\b`|`\f`|`\n`|`\r`|`\t` |
|
||||
| *unescaped* | := | « any unicode scalar value except `"`, `\`, or `|` » |
|
||||
| *escaped* | := | `\\`|`\/`|`\b`|`\f`|`\n`|`\r`|`\t`|`\u`*hex* *hex* *hex* *hex* |
|
||||
| *binchar* | := | *binunescaped* | (*escaped* |`\"`|`\x`*hex* *hex*) |
|
||||
| *binunescaped* | := | « any unicode scalar value between 32 and 126, except `"` or `\` » |
|
||||
| *binunescaped* | := | « any unicode scalar value between 32 and 126, except `\` or `"` » |
|
||||
| *base64char* | := | `A`..`Z`|`a`..`z`|`0`..`9`|`+`|`/`|`-`|`_`|`=` |
|
||||
| *sympunct* | := | `~`|`!`|`$`|`%`|`^`|`&`|`*`|`?`|`_`|`=`|`+`|`-`|`/`|`.` |
|
||||
| *symuchar* | := | « any scalar value greater than 127 whose Unicode category is Lu, Ll, Lt, Lm, Lo, Mn, Mc, Me, Nd, Nl, No, Pc, Pd, Po, Sc, Sm, Sk, So, or Co » |
|
||||
|
|
Loading…
Reference in New Issue