2021-06-02 04:57:48 +00:00
|
|
|
version 1 .
|
2021-07-22 12:12:53 +00:00
|
|
|
embeddedType EntityRef.Cap .
|
2021-06-02 04:57:48 +00:00
|
|
|
|
2023-10-31 20:56:44 +00:00
|
|
|
# Dataspace patterns: a sublanguage of attenuation patterns.
|
2021-06-02 04:57:48 +00:00
|
|
|
Pattern = DDiscard / DBind / DLit / DCompound .
|
|
|
|
|
|
|
|
DDiscard = <_>.
|
2021-08-11 19:43:29 +00:00
|
|
|
DBind = <bind @pattern Pattern>.
|
2021-12-13 12:49:58 +00:00
|
|
|
DLit = <lit @value AnyAtom>.
|
|
|
|
DCompound = <rec @label any @fields [Pattern ...]>
|
|
|
|
/ <arr @items [Pattern ...]>
|
|
|
|
/ <dict @entries { any: Pattern ...:... }> .
|
2021-06-03 13:58:48 +00:00
|
|
|
|
2021-12-13 12:49:58 +00:00
|
|
|
AnyAtom =
|
|
|
|
/ @bool bool
|
|
|
|
/ @double double
|
|
|
|
/ @int int
|
|
|
|
/ @string string
|
|
|
|
/ @bytes bytes
|
|
|
|
/ @symbol symbol
|
2024-02-05 22:14:19 +00:00
|
|
|
/ @embedded #:any
|
2021-12-13 12:49:58 +00:00
|
|
|
.
|