1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Tolerant LaTeX parsing substrate — spec 018 Phase 1. Ports
//! `pylatexenc.latexwalker`'s node model (`node.rs`, `parser.rs`),
//! `core/parser.py`'s pre-tokenization neutralization
//! (`neutralize.rs`), `pos_to_lineno_colno` (`position.rs`), and
//! `_helpers.py`'s prose-context classifier (`prose.rs`).
//!
//! No rules live here yet (Phase 3) — this module's job is only to
//! prove the substrate matches, validated by `tests/parser_parity.rs`
//! against a Python oracle dump (`tools/dump_tex_nodes.py`).
pub use *;
pub use LineIndex;
/// Full `.tex` parse pipeline, mirroring
/// `core/parser.py::parse_tex_source`'s preprocessing + tokenize order
/// (tolerant-parsing path only — see `parser::parse`'s doc comment).