eyg/interpreter/simple_debug

Pretty-printed representation of EYG values.

Output is laid out by glam so that small structures collapse onto a single line and only larger structures break across multiple lines. The returned string is intended for human consumption — applications that need machine-readable output should serialise the value themselves.

Values

pub const default_width: Int

Default width used when none is supplied.

pub fn describe(reason: break.Reason(a, b)) -> String

Describe a reason to stop execution.

pub fn hint(reason: break.Reason(a, b)) -> String

Suggest a possible fix for an execution error.

pub fn inspect(value: value.Value(a, b)) -> String

Inspect a value at the default width.

pub fn render(value: value.Value(a, b), width: Int) -> String

Render a value with an explicit line-width budget. A larger width keeps more on one line; a smaller width causes earlier breaking.

Search Document