24 lines
543 B
Plaintext
24 lines
543 B
Plaintext
version 1 .
|
|
embeddedType EntityRef.Cap .
|
|
|
|
# Dataspace patterns: a sublanguage of attenuation patterns.
|
|
Pattern = DDiscard / DBind / DLit / DCompound .
|
|
|
|
DDiscard = <_>.
|
|
DBind = <bind @pattern Pattern>.
|
|
DLit = <lit @value AnyAtom>.
|
|
DCompound = <rec @label any @fields [Pattern ...]>
|
|
/ <arr @items [Pattern ...]>
|
|
/ <dict @entries { any: Pattern ...:... }> .
|
|
|
|
AnyAtom =
|
|
/ @bool bool
|
|
/ @float float
|
|
/ @double double
|
|
/ @int int
|
|
/ @string string
|
|
/ @bytes bytes
|
|
/ @symbol symbol
|
|
/ @embedded #!any
|
|
.
|