decode_declaration.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.6/decode_declaration.bend as Decode_declaration
13 imports
import Base import ./decode_frame.bend as F import ./decode_owned_component.bend as OwnedWrite import ./decode_requests.bend as Request import ./world.bend as W import ./column.bend as Col import ./component.bend as Cmp import ./compose.bend as Query import ./capabilities.bend as Cap import ./bundle_install.bend as Install import ./ordinary_declaration.bend as Identity import ./decode_data.bend as D import ./ordinary_query_declaration.bend as Clause
Types
type Ops source · line 15 · raw
@S:Data -> @P:Type -> @R:Type -> @V:Data -> @-H:Type -> Type
Ops@S:Data -> @P:Type -> @R:Type -> @V:Data -> @-H:Type -> @read:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<H, V> -> @write:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.OwnedRequest<H, 0x14a72e1c180a5ab1f8a056d43822425c/compose.Insert<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_owned_component.Output<P>> -> @spawn:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.OwnedRequest<H, P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>> -> @decode:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.OwnedRequest<H, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Input<S, P>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Output<S, P>> -> @resource:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.OwnedRequest<H, R, Unit> -> Ops<S, P, R, V, H>
Templates
template query source · line 19 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_query_declaration.Declaration<S, 0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Write<0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, Store, R, E>, P, V>>
One ordinary query write clause supplies nominal identity, read provider, membership and metadata. The owned setter uses the identical family/lenses.
template read_grant source · line 22 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, Store, R, E>, V>
template grants source · line 25 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> Ops<S, P, R, V, 0x14a72e1c180a5ab1f8a056d43822425c/decode_frame.Frame<S, Store, R, E, P, Q, identity, project>>
template invoke source · line 28 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> @-A:Type -> @-U:Type -> @-body:(@-H:Type -> @-ops:Ops<S, P, R, V, H> -> @_:A -> @_:H -> Pair(H, U)) -> @frame:0x14a72e1c180a5ab1f8a056d43822425c/decode_frame.Frame<S, Store, R, E, P, Q, identity, project> -> @args:A -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/decode_frame.Frame<S, Store, R, E, P, Q, identity, project>, U)
template access_clauses source · line 31 · raw
@-S:Data -> @values:List<&2, 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_query_declaration.Clause<S>> -> List<&2, String>
template access source · line 36 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> @-resource:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, R> -> List<&2, String>
template readonly_query source · line 40 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> 0x14a72e1c180a5ab1f8a056d43822425c/ordinary_query_declaration.Declaration<S, 0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<0x14a72e1c180a5ab1f8a056d43822425c/compose.Frame<S, Store, R, E>, V>>
Read-only assembly grants no owned writer/spawn/resource capability.
template readonly_grant source · line 42 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> 0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<0x14a72e1c180a5ab1f8a056d43822425c/decode_frame.Frame<S, Store, R, E, P, Q, identity, project>, V>
template invoke_readonly source · line 44 · raw
@-S:Data -> @-Store:Type -> @-R:Type -> @-E:Data -> @-P:Type -> @-Q:Type -> @-V:Data -> @-Rest:Type -> @-Token:Data -> @-identity:0x14a72e1c180a5ab1f8a056d43822425c/ordinary_declaration.Declaration<S, P> -> @-project:(@_:P -> Pair(P, 0x14a72e1c180a5ab1f8a056d43822425c/decode_data.Raw)) -> @-view:(@_:P -> Pair(P, V)) -> @-take:(@_:Store -> Pair(Rest, 0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P>)) -> @-put:(@_:Rest -> @_:0x14a72e1c180a5ab1f8a056d43822425c/column.Column<S, P> -> Store) -> @-install:(@_:0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/world.Handle<S> -> @_:0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P> -> 0x14a72e1c180a5ab1f8a056d43822425c/bundle_install.Attempt<0x14a72e1c180a5ab1f8a056d43822425c/world.World<S, Store, R, E>, 0x14a72e1c180a5ab1f8a056d43822425c/decode_requests.Packet<P>, Q>) -> @-A:Type -> @-U:Type -> @-body:(@-H:Type -> @-cap:0x14a72e1c180a5ab1f8a056d43822425c/capabilities.Read<H, V> -> @_:A -> @_:H -> Pair(H, U)) -> @frame:0x14a72e1c180a5ab1f8a056d43822425c/decode_frame.Frame<S, Store, R, E, P, Q, identity, project> -> @args:A -> Pair(0x14a72e1c180a5ab1f8a056d43822425c/decode_frame.Frame<S, Store, R, E, P, Q, identity, project>, U)