Skip to documentation
SLOP

tiny.zen.math

Reference tiny.zen math

Defined in tiny.zen.

API (8)

Actions

Public operations.

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

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

Source

Called byCallstest sourcelib.zen.src.math.testtest: math propagates invalid equatio...test sourcelib.zen.src.math.testtest: math renders the boundary condi...test sourcelib.zen.src.math.testtest: math renders the mean value pro...private sourcelib.zen.src.math.rootrendermathrenderDisplay
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallstest sourcelib.zen.src.math.testtest: math propagates invalid equatio...test sourcelib.zen.src.math.testtest: math renders accents movable wo...test sourcelib.zen.src.math.testtest: math renders fractions integral...private sourcelib.zen.src.math.rootrendermathrenderInline
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/zen/src/math/root.zig

zig
const std = @import("std");pub const mathml = @import("mathml.zig");pub const parse = @import("parse.zig");pub const symbol = @import("symbol.zig");pub const token = @import("token.zig");pub const Diagnostic = parse.Diagnostic;pub const Error = parse.Error;const Allocator = std.mem.Allocator;pub fn renderInline(out: *std.ArrayList(u8), allocator: Allocator, source: []const u8, diagnostic: ?*Diagnostic) Error!void {    try render(out, allocator, source, "<math>", diagnostic);}pub fn renderDisplay(out: *std.ArrayList(u8), allocator: Allocator, source: []const u8, diagnostic: ?*Diagnostic) Error!void {    try render(out, allocator, source, "<math display=\"block\">", diagnostic);}fn render(out: *std.ArrayList(u8), allocator: Allocator, source: []const u8, open_tag: []const u8, diagnostic: ?*Diagnostic) Error!void {    var parsed = try parse.parse(allocator, source, diagnostic);    defer parsed.deinit();    try out.appendSlice(allocator, open_tag);    try mathml.append(out, allocator, parsed.root);    try out.appendSlice(allocator, "</math>");}

Source: lib/zen/src/root.zig:29

zig
/// TeX-like expression parsing and MathML rendering.pub const math = @import("math/root.zig");

Audit

Definitions3
Public names3
Members0
Version26.7.0
Revisiondaab053ee433