27 lines
688 B
Plaintext
27 lines
688 B
Plaintext
version 1 .
|
|
embeddedType EntityRef.Cap .
|
|
|
|
# Dataspace patterns: *almost* a sublanguage of attenuation patterns.
|
|
#
|
|
# One key difference is that Dataspace patterns are extensible, in that
|
|
# they ignore fields not mentioned in DCompound patterns.
|
|
|
|
Pattern = DDiscard / DBind / DLit / DCompound .
|
|
|
|
DDiscard = <_>.
|
|
DBind = <bind @pattern Pattern>.
|
|
DLit = <lit @value AnyAtom>.
|
|
DCompound = <rec @label any @fields { int: Pattern ...:... }>
|
|
/ <arr @items { int: Pattern ...:... }>
|
|
/ <dict @entries { any: Pattern ...:... }> .
|
|
|
|
AnyAtom =
|
|
/ @bool bool
|
|
/ @double double
|
|
/ @int int
|
|
/ @string string
|
|
/ @bytes bytes
|
|
/ @symbol symbol
|
|
/ @embedded #:any
|
|
.
|