Update schemas for new embedded syntax; steps toward pattern support
This commit is contained in:
parent
e47a37e3f0
commit
3412eabcff
|
@ -0,0 +1,11 @@
|
||||||
|
version 1 .
|
||||||
|
|
||||||
|
; Dataspace patterns: a sublanguage of attenuation patterns.
|
||||||
|
Pattern = DDiscard / DBind / DLit / DCompound .
|
||||||
|
|
||||||
|
DDiscard = <_>.
|
||||||
|
DBind = <bind @name symbol @pattern Pattern>.
|
||||||
|
DLit = <lit @value any>.
|
||||||
|
DCompound = @rec <compound <rec @label any @arity int> @members { int: Pattern ...:... }>
|
||||||
|
/ @arr <compound <arr @arity int> @members { int: Pattern ...:... }>
|
||||||
|
/ @dict <compound <dict> @members { any: Pattern ...:... }> .
|
|
@ -1,9 +1,4 @@
|
||||||
version 1 .
|
version 1 .
|
||||||
embeddedType Actor.Ref .
|
embeddedType Actor.Ref .
|
||||||
|
|
||||||
;As implemented
|
Observe = <Observe @pattern dataspace-patterns.Pattern @observer #!any>.
|
||||||
Observe = <Observe @label symbol @observer embedded>.
|
|
||||||
|
|
||||||
; ;As will be implemented soon
|
|
||||||
; Observe = <Observe @pattern Pattern @observer embedded>.
|
|
||||||
.
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
version 1 .
|
version 1 .
|
||||||
embeddedType Actor.Ref .
|
embeddedType Actor.Ref .
|
||||||
|
|
||||||
Resolve = <resolve @sturdyref sturdy.SturdyRef @observer embedded>.
|
Resolve = <resolve @sturdyref sturdy.SturdyRef @observer #!#!any>.
|
||||||
Bind = <bind @oid any @key bytes @target embedded>.
|
Bind = <bind @oid any @key bytes @target #!any>.
|
||||||
|
|
|
@ -11,4 +11,4 @@ TurnEvent = [@oid Oid @event Event].
|
||||||
Assert = <assert @assertion Assertion @handle Handle>.
|
Assert = <assert @assertion Assertion @handle Handle>.
|
||||||
Retract = <retract @handle Handle>.
|
Retract = <retract @handle Handle>.
|
||||||
Message = <message @body Assertion>.
|
Message = <message @body Assertion>.
|
||||||
Sync = <sync @peer embedded>.
|
Sync = <sync @peer #!#t>.
|
||||||
|
|
|
@ -3,9 +3,16 @@ embeddedType Actor.Ref .
|
||||||
|
|
||||||
UserId = int .
|
UserId = int .
|
||||||
|
|
||||||
Join = <joinedUser @uid UserId @handle embedded>.
|
Join = <joinedUser @uid UserId @handle #!Session>.
|
||||||
|
|
||||||
NickClaim = <claimNick @uid UserId @name string @k embedded>.
|
Session = @observeUsers <Observe =user @observer #!UserInfo>
|
||||||
|
/ @observeSpeech <Observe =says @observer #!Says>
|
||||||
|
/ NickClaim
|
||||||
|
/ Says
|
||||||
|
.
|
||||||
|
|
||||||
|
NickClaim = <claimNick @uid UserId @name string @k #!NickClaimResponse>.
|
||||||
|
NickClaimResponse = #t / NickConflict .
|
||||||
|
|
||||||
UserInfo = <user @uid UserId @name string>.
|
UserInfo = <user @uid UserId @name string>.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue