Skip to documentation
SLOP

tiny.python.source

Reference tiny.python source

Defined in tiny.python.

The first stage of the package turns the text of a Python program into a list of tokens.

API (7)

Actions

Public operations.

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

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

Source

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

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

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

zig
//! The first stage of the package turns the text of a Python program into a list of tokens. Each//! token records its kind and the byte range it covers in the text. The parser needs the program as//! a sequence of names, numbers, strings, keywords and symbols, with the start and end of every//! indented block marked.//!//! One file, `token`, defines the token and its kinds. The other file, `lexer`, produces the list//! through one function, `tokenize`. The namespace re-exports `Token`, `Tag` and `Span` from//! `token`, and `Stream` and `tokenize` from `lexer`. The package's `execute` calls `tokenize`//! before anything else.pub const token = @import("token.zig");pub const lexer = @import("lexer.zig");pub const Token = token.Token;pub const Tag = token.Tag;pub const Span = token.Span;pub const Stream = lexer.Stream;pub const tokenize = lexer.tokenize;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433