Fix up cheat sheets
This commit is contained in:
parent
9d1db2d71f
commit
e2e81a67c3
|
@ -4,6 +4,8 @@ Value := ws (Record | Collection | Atom | Embedded | Annotated)
|
||||||
Collection := Sequence | Dictionary | Set
|
Collection := Sequence | Dictionary | Set
|
||||||
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
||||||
ws := (space | tab | cr | lf | `,`)*
|
ws := (space | tab | cr | lf | `,`)*
|
||||||
|
delimiter := ws | `<` | `>` | `[` | `]` | `{` | `}`
|
||||||
|
| `#` | `:` | `"` | `|` | `@` | `;`
|
||||||
|
|
||||||
Record := `<` Value+ ws `>`
|
Record := `<` Value+ ws `>`
|
||||||
Sequence := `[` Value* ws `]`
|
Sequence := `[` Value* ws `]`
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
| *Collection* | := | *Sequence* | *Dictionary* | *Set* |
|
| *Collection* | := | *Sequence* | *Dictionary* | *Set* |
|
||||||
| *Atom* | := | *Boolean* | *ByteString* | *String* | *QuotedSymbol* | *Symbol* | *Number* |
|
| *Atom* | := | *Boolean* | *ByteString* | *String* | *QuotedSymbol* | *Symbol* | *Number* |
|
||||||
| **ws** | := | (**space** | **tab** | **cr** | **lf** |`,`)<sup>⋆</sup> |
|
| **ws** | := | (**space** | **tab** | **cr** | **lf** |`,`)<sup>⋆</sup> |
|
||||||
|
| **delimiter** | := | **ws** | `<` | `>` | `[` | `]` | `{` | `}` | `#` | `:` | `"` | `|` | `@` | `;` |
|
||||||
|
|
||||||
{:.postcard-grammar.textsyntax}
|
{:.postcard-grammar.textsyntax}
|
||||||
| *Record* | := | `<`*Value*<sup>+</sup> **ws**`>` |
|
| *Record* | := | `<`*Value*<sup>+</sup> **ws**`>` |
|
||||||
|
|
|
@ -3,7 +3,15 @@
|
||||||
set -e
|
set -e
|
||||||
exec 1>&2
|
exec 1>&2
|
||||||
|
|
||||||
COMMAND=cmp
|
failed=
|
||||||
|
cmp_and_fail() {
|
||||||
|
if ! cmp "$1" "$2"
|
||||||
|
then
|
||||||
|
failed=failed
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
COMMAND=cmp_and_fail
|
||||||
if [ "$1" = "--fix" ];
|
if [ "$1" = "--fix" ];
|
||||||
then
|
then
|
||||||
COMMAND=cp
|
COMMAND=cp
|
||||||
|
@ -38,3 +46,5 @@ ${COMMAND} _includes/cheatsheet-text-plaintext.md implementations/rust/preserves
|
||||||
${COMMAND} _includes/value-grammar.md implementations/rust/preserves/doc/value-grammar.md
|
${COMMAND} _includes/value-grammar.md implementations/rust/preserves/doc/value-grammar.md
|
||||||
|
|
||||||
${COMMAND} _includes/what-is-preserves-schema.md implementations/rust/preserves-schema/doc/what-is-preserves-schema.md
|
${COMMAND} _includes/what-is-preserves-schema.md implementations/rust/preserves-schema/doc/what-is-preserves-schema.md
|
||||||
|
|
||||||
|
[ -z "$failed" ]
|
||||||
|
|
|
@ -4,6 +4,8 @@ Value := ws (Record | Collection | Atom | Embedded | Annotated)
|
||||||
Collection := Sequence | Dictionary | Set
|
Collection := Sequence | Dictionary | Set
|
||||||
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
Atom := Boolean | ByteString | String | QuotedSymbol | Symbol | Number
|
||||||
ws := (space | tab | cr | lf | `,`)*
|
ws := (space | tab | cr | lf | `,`)*
|
||||||
|
delimiter := ws | `<` | `>` | `[` | `]` | `{` | `}`
|
||||||
|
| `#` | `:` | `"` | `|` | `@` | `;`
|
||||||
|
|
||||||
Record := `<` Value+ ws `>`
|
Record := `<` Value+ ws `>`
|
||||||
Sequence := `[` Value* ws `]`
|
Sequence := `[` Value* ws `]`
|
||||||
|
|
Loading…
Reference in New Issue