Skip to documentation
SLOP

tiny.accy.kernel.interpret

Reference tiny.accy kernel interpret

Defined in kernel.

API (24)

Actions

Public operations.

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

Values and defaults

Public values and defaults.

No direct callersNo direct callskernelinterpret
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/accy/src/kernel/interpret/policy.zig:1

zig
pub const Unhandled = struct {    indexed: Action = .lower,    regions: Action = .lower,    pub const Action = enum {        lower,        bind,    };};

Source: lib/accy/src/kernel/interpret/spec.zig:5

zig
pub const Graph = struct {};

Source: lib/accy/src/kernel/interpret/policy.zig:12

zig
pub const indexed = Unhandled{ .indexed = .bind };

Source: lib/accy/src/kernel/interpret/policy.zig:11

zig
pub const lower = Unhandled{};

Source: lib/accy/src/kernel/interpret/policy.zig:13

zig
pub const transparent = Unhandled{ .indexed = .bind, .regions = .bind };

Source: lib/accy/src/kernel/interpret/spec.zig:15

zig
pub fn InterpretSpec(comptime Initial: type) type {    if (comptime @hasDecl(Initial, "attach")) return Initial;    return With(Initial);}
Called byCallskernel.interpretasSpeckernel.interpretWithkernel.interpretInterpretSpec
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:88

zig
pub fn Layer(comptime Next: type, comptime Impl: type, comptime unhandled: policy.Unhandled) type {    return dispatch.Layer(Next, Impl, unhandled);}
Called byCallsNo direct callskernel.interpretWithPolicykernel.interpretlayerkernel.interpretLayer
Static calls · unresolved targets: 0 · external targets: 1.

Source: lib/accy/src/kernel/interpret/spec.zig:84

zig
pub fn Result(comptime Spec: type) type {    return State(Spec).Result;}
Called byCallsNo direct callerskernel.interpretStatekernel.interpretResult
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:62

zig
pub fn Stack(comptime Specs: type) type {    _ = stackLength(Specs);    return struct {        specs: Specs,        pub fn attach(self: @This(), next: anytype) StackAttach(0, Specs, @TypeOf(next)) {            return attachFrom(0, self.specs, next);        }    };}
Called byCallskernel.interpretstackprivate sourcelib.accy.src.kernel.interpret.specStackAttachprivate sourcelib.accy.src.kernel.interpret.specattachFromprivate sourcelib.accy.src.kernel.interpret.specstackLengthkernel.interpretStack
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:80

zig
pub fn State(comptime Spec: type) type {    return @TypeOf(@as(Spec, undefined).attach(@as(*program.Builder, undefined)));}
Called byCallsNo direct callskernel.interpretResultkernel.interpretState
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:33

zig
pub fn With(comptime Impl: type) type {    return WithPolicy(Impl, policy.implUnhandled(Impl, policy.lower));}
Called byCallskernel.interpretInterpretSpeckernel.interpretgraphkernel.interpretwithprivate sourcelib.accy.src.kernel.interpret.policyimplUnhandledkernel.interpretWithPolicykernel.interpretWith
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:45

zig
pub fn WithPolicy(comptime Impl: type, comptime unhandled: policy.Unhandled) type {    return struct {        impl: Impl,        pub fn attach(self: @This(), next: anytype) Layer(@TypeOf(next), Impl, unhandled) {            return .{                .next = next,                .impl = self.impl,            };        }    };}
Called byCallskernel.interpretWithkernel.interpretbindkernel.interpretbindIndexedkernel.interpretLayerkernel.interpretWithPolicy
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:20

zig
pub fn asSpec(initial: anytype) InterpretSpec(@TypeOf(initial)) {    if (comptime @hasDecl(@TypeOf(initial), "attach")) return initial;    return with(initial);}
Called byCallsNo direct callerskernel.interpretInterpretSpeckernel.interpretwithkernel.interpretasSpec
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:37

zig
pub fn bind(impl: anytype) WithPolicy(@TypeOf(impl), policy.transparent) {    return .{ .impl = impl };}
Called byCallsNo direct callerskernel.interpretWithPolicykernel.interpretbind
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:41

zig
pub fn bindIndexed(impl: anytype) WithPolicy(@TypeOf(impl), policy.indexed) {    return .{ .impl = impl };}
Called byCallsNo direct callerskernel.interpretWithPolicykernel.interpretbindIndexed
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:25

zig
pub fn deinitIfPresent(value: anytype) void {    const Value = @typeInfo(@TypeOf(value)).pointer.child;    switch (@typeInfo(Value)) {        .@"struct", .@"union", .@"enum", .@"opaque" => if (comptime @hasDecl(Value, "deinit")) value.deinit(),        else => {},    }}

Source: lib/accy/src/kernel/interpret/spec.zig:7

zig
pub fn graph() With(Graph) {    return with(Graph{});}
Called byCallsprivate; no linktools.smg.src.help.click.landingwriteRootprivate; no linktools.smg.src.help.click.top.mutatewritekernel.interpretWithkernel.interpretwithkernel.interpretgraph
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:73

zig
pub fn layer(next: anytype, impl: anytype) Layer(@TypeOf(next), @TypeOf(impl), policy.implUnhandled(@TypeOf(impl), policy.lower)) {    return .{        .next = next,        .impl = impl,    };}
Called byCallsNo direct callersprivate sourcelib.accy.src.kernel.interpret.policyimplUnhandledkernel.interpretLayerkernel.interpretlayer
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:58

zig
pub fn stack(specs: anytype) Stack(@TypeOf(specs)) {    return .{ .specs = specs };}
Called byCallsNo direct callerskernel.interpretStackkernel.interpretstack
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/spec.zig:11

zig
pub fn with(impl: anytype) With(@TypeOf(impl)) {    return .{ .impl = impl };}
Called byCallskernel.interpretasSpeckernel.interpretgraphkernel.interpretWithkernel.interpretwith
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/accy/src/kernel/interpret/root.zig

zig
const policy = @import("policy.zig");const spec = @import("spec.zig");pub const surface = @import("surface.zig");pub const Unhandled = policy.Unhandled;pub const lower_unhandled = policy.lower;pub const indexed_unhandled = policy.indexed;pub const transparent_unhandled = policy.transparent;pub const Graph = spec.Graph;pub const With = spec.With;pub const WithPolicy = spec.WithPolicy;pub const Stack = spec.Stack;pub const State = spec.State;pub const Result = spec.Result;pub const Layer = spec.Layer;pub const InterpretSpec = spec.InterpretSpec;pub const graph = spec.graph;pub const with = spec.with;pub const bind = spec.bind;pub const bindIndexed = spec.bindIndexed;pub const stack = spec.stack;pub const layer = spec.layer;pub const asSpec = spec.asSpec;pub const deinitIfPresent = spec.deinitIfPresent;pub const excluded_methods = surface.excluded_methods;pub const supports = surface.supports;

Source: lib/accy/src/kernel/root.zig:53

zig
pub const interpret = interpret_mod;

Audit

Definitions22
Public names22
Members4
Version26.7.0
Revisiondaab053ee433