Skip to documentation
SLOP

tiny.python.code

Reference tiny.python code

Defined in tiny.python.

The package's compiled form of a program: a list of instructions for a stack machine, with tables of the constants, names and function bodies the instructions refer to.

API (6)

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

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

Source

Source: lib/python/src/code/root.zig

zig
//! The package's compiled form of a program: a list of instructions for a stack machine, with//! tables of the constants, names and function bodies the instructions refer to. The compiler needs//! a form it can append to during one walk over the syntax tree, and the virtual machine needs a//! form it can run directly, one instruction at a time.//!//! The file `chunk` defines `Chunk`, `Instruction` and `Function`, and the file `op` defines `Op`,//! the set of operations. The namespace re-exports those four names. The compiler returns a//! `Chunk`, and the virtual machine runs it.pub const chunk = @import("chunk.zig");pub const op = @import("op.zig");pub const Chunk = chunk.Chunk;pub const Function = chunk.Function;pub const Instruction = chunk.Instruction;pub const Op = op.Op;

Source: lib/python/src/root.zig:91

zig
pub const code = @import("code/root.zig");

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433