Cosmetic rearrangement of cheatsheets
This commit is contained in:
parent
ebd8b3f05b
commit
d638555239
|
@ -3,7 +3,7 @@ The definitions of `Atom`, `ws`, and `linecomment` are as given in the Preserves
|
|||
```text
|
||||
Document := Expr* ws
|
||||
Expr := ws (SimpleExpr | Punct)
|
||||
SimpleExpr := Atom | Compound | Embedded | Annotated
|
||||
SimpleExpr := Compound | Embedded | Annotated | Atom
|
||||
Compound := Sequence | Record | Block | Group | Set
|
||||
Punct := `,` | `;` | `:`+
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ The definitions of `Atom`, `ws`, and `linecomment` are as given in the Preserves
|
|||
{:.postcard-grammar.textsyntax}
|
||||
| *Document* | := | *Expr*<sup>⋆</sup> **ws**
|
||||
| *Expr* | := | **ws** (*SimpleExpr* | *Punct*)
|
||||
| *SimpleExpr* | := | *Atom* | *Compound* | *Embedded* | *Annotated*
|
||||
| *SimpleExpr* | := | *Compound* | *Embedded* | *Annotated* | *Atom*
|
||||
| *Compound* | := | *Sequence* | *Record* | *Block* | *Group* | *Set*
|
||||
| *Punct* | := | `,` | `;` | `:`<sup>+</sup>
|
||||
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
```text
|
||||
Document := Value ws
|
||||
Value := ws (Record | Collection | Atom | Embedded | Annotated)
|
||||
Value := ws (Record | Collection | Embedded | Annotated | Atom)
|
||||
Collection := Sequence | Dictionary | Set
|
||||
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
||||
ws := (space | tab | cr | lf)*
|
||||
commas := (ws `,`)* ws
|
||||
delimiter := ws | `<` | `>` | `[` | `]` | `{` | `}`
|
||||
| `#` | `:` | `"` | `|` | `@` | `;` | `,`
|
||||
|
||||
Record := `<` Value+ ws `>`
|
||||
Sequence := `[` (commas Value)* commas `]`
|
||||
Set := `#{` (commas Value)* commas `}`
|
||||
Dictionary := `{` (commas Value ws `:` Value)* commas `}`
|
||||
commas := (ws `,`)* ws
|
||||
|
||||
Embedded := `#!` Value
|
||||
Annotated := Annotation Value
|
||||
Annotation := `@` Value | `#` ((space | tab) linecomment) (cr | lf)
|
||||
|
||||
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
||||
Boolean := `#t` | `#f`
|
||||
ByteString := `#"` binchar* `"`
|
||||
| `#x"` (ws hex hex)* ws `"`
|
||||
|
@ -25,11 +26,6 @@ Float := flt (`f`|`F`) | `#xf"` (ws hex hex)4 ws `"`
|
|||
Double := flt | `#xd"` (ws hex hex)8 ws `"`
|
||||
SignedInteger := int
|
||||
|
||||
Embedded := `#!` Value
|
||||
Annotated := Annotation Value
|
||||
Annotation := `@` Value | `#` ((space | tab) linecomment) (cr | lf)
|
||||
linecomment := «any unicode scalar except cr or lf»*
|
||||
|
||||
escaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\u` hex hex hex hex
|
||||
binescaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\x` hex hex
|
||||
binchar := «any scalar ≥32 and ≤126, except `\` or `"`» | binescaped | `\"`
|
||||
|
@ -45,4 +41,9 @@ int := (`-`|`+`) (`0`..`9`)+
|
|||
frac := `.` (`0`..`9`)+
|
||||
exp := (`e`|`E`) (`-`|`+`) (`0`..`9`)+
|
||||
hex := `A`..`F` | `a`..`f` | `0`..`9`
|
||||
|
||||
ws := (space | tab | cr | lf)*
|
||||
delimiter := ws | `<` | `>` | `[` | `]` | `{` | `}`
|
||||
| `#` | `:` | `"` | `|` | `@` | `;` | `,`
|
||||
linecomment := «any unicode scalar except cr or lf»*
|
||||
```
|
||||
|
|
|
@ -1,19 +1,22 @@
|
|||
{:.postcard-grammar.textsyntax}
|
||||
| *Document* | := | *Value* **ws** |
|
||||
| *Value* | := | **ws** (*Record* | *Collection* | *Atom* | *Embedded* | *Annotated*) |
|
||||
| *Value* | := | **ws** (*Record* | *Collection* | *Embedded* | *Annotated* | *Atom*) |
|
||||
| *Collection* | := | *Sequence* | *Dictionary* | *Set* |
|
||||
| *Atom* | := | *Boolean* | *ByteString* | *String* | *QuotedSymbol* | *Symbol* | *Number* |
|
||||
| **ws** | := | (**space** | **tab** | **cr** | **lf**)<sup>⋆</sup> |
|
||||
| **commas** | := | (**ws** `,`)<sup>⋆</sup> **ws** |
|
||||
| **delimiter** | := | **ws** | `<` | `>` | `[` | `]` | `{` | `}` | `#` | `:` | `"` | `|` | `@` | `;` | `,` |
|
||||
|
||||
{:.postcard-grammar.textsyntax}
|
||||
| *Record* | := | `<`*Value*<sup>+</sup> **ws**`>` |
|
||||
| *Sequence* | := | `[`(**commas** *Value*)<sup>⋆</sup> **commas**`]` |
|
||||
| *Set* | := | `#{`(**commas** *Value*)<sup>⋆</sup> **commas**`}` |
|
||||
| *Dictionary* | := | `{` (**commas** *Value* **ws**`:`*Value*)<sup>⋆</sup> **commas**`}` |
|
||||
| **commas** | := | (**ws** `,`)<sup>⋆</sup> **ws** |
|
||||
|
||||
{:.postcard-grammar.textsyntax}
|
||||
| *Embedded* | := | `#!`*Value* |
|
||||
| *Annotated* | := | *Annotation* *Value* |
|
||||
| *Annotation* | := | `@`*Value* |`#` ((**space** | **tab**) *linecomment*) (**cr** | **lf**) |
|
||||
|
||||
{:.postcard-grammar.textsyntax}
|
||||
| *Atom* | := | *Boolean* | *ByteString* | *String* | *QuotedSymbol* | *Symbol* | *Number* |
|
||||
| *Boolean* | := | `#t`|`#f` |
|
||||
| *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> `"` |
|
||||
|
@ -24,12 +27,6 @@
|
|||
| *Double* | := | *flt* |`#xd"` (**ws** *hex* *hex*)<sup>8</sup> **ws**`"` |
|
||||
| *SignedInteger* | := | *int* |
|
||||
|
||||
{:.postcard-grammar.textsyntax}
|
||||
| *Embedded* | := | `#!`*Value* |
|
||||
| *Annotated* | := | *Annotation* *Value* |
|
||||
| *Annotation* | := | `@`*Value* |`#` ((**space** | **tab**) *linecomment*) (**cr** | **lf**) |
|
||||
| *linecomment* | := | « any unicode scalar value except **cr** or **lf** »<sup>⋆</sup> |
|
||||
|
||||
{:.postcard-grammar.textsyntax}
|
||||
| *escaped* | := | `\\`|`\/`|`\b`|`\f`|`\n`|`\r`|`\t`|`\u`*hex* *hex* *hex* *hex* |
|
||||
| *binescaped* | := | `\\`|`\/`|`\b`|`\f`|`\n`|`\r`|`\t`|`\x`*hex* *hex* |
|
||||
|
@ -44,3 +41,8 @@
|
|||
| *frac* | := | `.` (`0`..`9`)<sup>+</sup> |
|
||||
| *exp* | := | (`e`|`E`) (`-`|`+`) (`0`..`9`)<sup>+</sup> |
|
||||
| *hex* | := | `A`..`F`|`a`..`f`|`0`..`9` |
|
||||
|
||||
{:.postcard-grammar.textsyntax}
|
||||
| **ws** | := | (**space** | **tab** | **cr** | **lf**)<sup>⋆</sup> |
|
||||
| **delimiter** | := | **ws** | `<` | `>` | `[` | `]` | `{` | `}` | `#` | `:` | `"` | `|` | `@` | `;` | `,` |
|
||||
| *linecomment* | := | « any unicode scalar value except **cr** or **lf** »<sup>⋆</sup> |
|
||||
|
|
|
@ -1,18 +1,19 @@
|
|||
```text
|
||||
Document := Value ws
|
||||
Value := ws (Record | Collection | Atom | Embedded | Annotated)
|
||||
Value := ws (Record | Collection | Embedded | Annotated | Atom)
|
||||
Collection := Sequence | Dictionary | Set
|
||||
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
||||
ws := (space | tab | cr | lf)*
|
||||
commas := (ws `,`)* ws
|
||||
delimiter := ws | `<` | `>` | `[` | `]` | `{` | `}`
|
||||
| `#` | `:` | `"` | `|` | `@` | `;` | `,`
|
||||
|
||||
Record := `<` Value+ ws `>`
|
||||
Sequence := `[` (commas Value)* commas `]`
|
||||
Set := `#{` (commas Value)* commas `}`
|
||||
Dictionary := `{` (commas Value ws `:` Value)* commas `}`
|
||||
commas := (ws `,`)* ws
|
||||
|
||||
Embedded := `#!` Value
|
||||
Annotated := Annotation Value
|
||||
Annotation := `@` Value | `#` ((space | tab) linecomment) (cr | lf)
|
||||
|
||||
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
||||
Boolean := `#t` | `#f`
|
||||
ByteString := `#"` binchar* `"`
|
||||
| `#x"` (ws hex hex)* ws `"`
|
||||
|
@ -25,11 +26,6 @@ Float := flt (`f`|`F`) | `#xf"` (ws hex hex)4 ws `"`
|
|||
Double := flt | `#xd"` (ws hex hex)8 ws `"`
|
||||
SignedInteger := int
|
||||
|
||||
Embedded := `#!` Value
|
||||
Annotated := Annotation Value
|
||||
Annotation := `@` Value | `#` ((space | tab) linecomment) (cr | lf)
|
||||
linecomment := «any unicode scalar except cr or lf»*
|
||||
|
||||
escaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\u` hex hex hex hex
|
||||
binescaped := `\\` | `\/` | `\b` | `\f` | `\n` | `\r` | `\t` | `\x` hex hex
|
||||
binchar := «any scalar ≥32 and ≤126, except `\` or `"`» | binescaped | `\"`
|
||||
|
@ -45,4 +41,9 @@ int := (`-`|`+`) (`0`..`9`)+
|
|||
frac := `.` (`0`..`9`)+
|
||||
exp := (`e`|`E`) (`-`|`+`) (`0`..`9`)+
|
||||
hex := `A`..`F` | `a`..`f` | `0`..`9`
|
||||
|
||||
ws := (space | tab | cr | lf)*
|
||||
delimiter := ws | `<` | `>` | `[` | `]` | `{` | `}`
|
||||
| `#` | `:` | `"` | `|` | `@` | `;` | `,`
|
||||
linecomment := «any unicode scalar except cr or lf»*
|
||||
```
|
||||
|
|
|
@ -95,7 +95,7 @@ body > nav ul > li {
|
|||
}
|
||||
}
|
||||
@media print {
|
||||
@page { size: letter; margin: 4rem 0rem 4.333rem 0rem; }
|
||||
@page { size: A4; margin: 4rem 0rem 4.333rem 0rem; }
|
||||
body > nav { display: none; }
|
||||
main { margin-left: 4.5rem; margin-right: 4.5rem; }
|
||||
html { font-size: 10.5pt; }
|
||||
|
|
Loading…
Reference in New Issue