Skip to documentation
SLOP

tiny.python.compile

Reference tiny.python compile

Defined in tiny.python.

The package's third stage turns a program's syntax tree into bytecode for the package's stack machine.

API (2)

Actions

Public operations.

Namespaces

Public namespaces.

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

Source

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

zig
//! The package's third stage turns a program's syntax tree into bytecode for the package's stack//! machine. Each statement and expression has to become a run of stack-machine instructions with//! the same effect, with jumps in place of the program's control flow.//!//! The namespace re-exports the file `compiler` and its function `compile`. The package's `execute`//! calls `compile` right after `parse` and runs the `Chunk` it returns.pub const compiler = @import("compiler.zig");pub const compile = compiler.compile;

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

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

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433