tiny.python.runtime
Defined in tiny.python.
The package's last stage runs a compiled program and hands its value back to the caller.
API (5)
Actions
Public operations.
execute: Tokenizes, parses, compiles and runs the source text, then returns the program's value together with the heap that owns the value's objects.
Types and contracts
Public types and contracts.
Error: The errors the virtual machine returns when a program fails, besideserror.OutOfMemory.Result: A finished run's value together with the heap that owns every object the value can point to.Vm: The state of one run: the chunk it runs, its heap, its call frames, its value stack and its global variables.
Namespaces
Public namespaces.
vm: The virtual machine runs a compiled Python program one instruction at a time, with one stack of values shared by every call, a list of call frames, a table of global variables and a heap.
Source
Source: lib/python/src/root.zig:93
zig
pub const runtime = @import("runtime/root.zig");Source: lib/python/src/runtime/root.zig
zig
//! The package's last stage runs a compiled program and hands its value back to the caller. A//! caller wants one call that takes source text and returns the program's value, with the memory//! behind that value freed in one step.//!//! The namespace re-exports the file `vm` and its `Vm`, `Error`, `Result` and `execute`. A caller//! runs a program with `execute` and frees the result with `deinit`.pub const vm = @import("vm.zig");pub const Vm = vm.Vm;pub const Error = vm.Error;pub const Result = vm.Result;pub const execute = vm.execute;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |