Skip to main content

Module debug

Module debug 

Source
Expand description

Debug dump: one line per node, pre-order, in the exact walk order prose::walk visits them — the Phase 1 acceptance artifact per the plan (“a debug dump of (node-kind, span, prose?) for every fixture must match a parallel dump from the Python walker”). Format:

<depth>\t<pos>\t<end>\t<kind>\t<prose>

kind encodes the node’s identifying detail (macro/environment name, group delimiter, math kind) so a mismatch is diagnosable from the dump alone, without needing the original source alongside it. Compared against tools/dump_tex_nodes.py’s identical format.

Functions§

dump
Dumps nodes in the same pre-order prose::walk visits them.