tiny.accy.kernel.interpret
Defined in kernel.
API (24)
Actions
Public operations.
InterpretSpecLayerResultStackStateWithWithPolicyasSpecbindbindIndexeddeinitIfPresentgraphlayerstacksupportswith
Types and contracts
Public types and contracts.
Namespaces
Public namespaces.
Values and defaults
Public values and defaults.
Source
Source: lib/accy/src/kernel/interpret/policy.zig:1
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
pub const Graph = struct {};Source: lib/accy/src/kernel/interpret/policy.zig:12
pub const indexed = Unhandled{ .indexed = .bind };Source: lib/accy/src/kernel/interpret/policy.zig:11
pub const lower = Unhandled{};Source: lib/accy/src/kernel/interpret/policy.zig:13
pub const transparent = Unhandled{ .indexed = .bind, .regions = .bind };Source: lib/accy/src/kernel/interpret/spec.zig:15
pub fn InterpretSpec(comptime Initial: type) type { if (comptime @hasDecl(Initial, "attach")) return Initial; return With(Initial);}Source: lib/accy/src/kernel/interpret/spec.zig:88
pub fn Layer(comptime Next: type, comptime Impl: type, comptime unhandled: policy.Unhandled) type { return dispatch.Layer(Next, Impl, unhandled);}Source: lib/accy/src/kernel/interpret/spec.zig:84
pub fn Result(comptime Spec: type) type { return State(Spec).Result;}Source: lib/accy/src/kernel/interpret/spec.zig:62
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); } };}Source: lib/accy/src/kernel/interpret/spec.zig:80
pub fn State(comptime Spec: type) type { return @TypeOf(@as(Spec, undefined).attach(@as(*program.Builder, undefined)));}Source: lib/accy/src/kernel/interpret/spec.zig:33
pub fn With(comptime Impl: type) type { return WithPolicy(Impl, policy.implUnhandled(Impl, policy.lower));}Source: lib/accy/src/kernel/interpret/spec.zig:45
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, }; } };}Source: lib/accy/src/kernel/interpret/spec.zig:20
pub fn asSpec(initial: anytype) InterpretSpec(@TypeOf(initial)) { if (comptime @hasDecl(@TypeOf(initial), "attach")) return initial; return with(initial);}Source: lib/accy/src/kernel/interpret/spec.zig:37
pub fn bind(impl: anytype) WithPolicy(@TypeOf(impl), policy.transparent) { return .{ .impl = impl };}Source: lib/accy/src/kernel/interpret/spec.zig:41
pub fn bindIndexed(impl: anytype) WithPolicy(@TypeOf(impl), policy.indexed) { return .{ .impl = impl };}Source: lib/accy/src/kernel/interpret/spec.zig:25
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
Source: lib/accy/src/kernel/interpret/spec.zig:73
pub fn layer(next: anytype, impl: anytype) Layer(@TypeOf(next), @TypeOf(impl), policy.implUnhandled(@TypeOf(impl), policy.lower)) { return .{ .next = next, .impl = impl, };}Source: lib/accy/src/kernel/interpret/spec.zig:58
pub fn stack(specs: anytype) Stack(@TypeOf(specs)) { return .{ .specs = specs };}Source: lib/accy/src/kernel/interpret/spec.zig:11
pub fn with(impl: anytype) With(@TypeOf(impl)) { return .{ .impl = impl };}Source: lib/accy/src/kernel/interpret/root.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
pub const interpret = interpret_mod;Audit
| Definitions | 22 |
|---|---|
| Public names | 22 |
| Members | 4 |
| Version | 26.7.0 |
| Revision | daab053ee433 |