latex_rust/parser/mod.rs
1//! LaTeX math → [`MathNode`] AST.
2//!
3//! Pipeline: [`preprocess`] → [`tokenize`] → typed parse. Unknown or unsupported
4//! input is [`ParseError`](crate::error::ParseError), never a silent partial tree.
5
6mod ast;
7mod parse;
8mod preproc;
9mod token;
10
11pub use ast::{
12 AccentKind, AtomKind, ColSpec, DelimSize, Delimiter, EnvRow, EqNumber, IntegralKind, MathNode,
13 MatrixStyle, PhantomKind, SpaceKind, TextStyle,
14};
15pub use parse::{parse, parse_with_colors};
16pub use preproc::preprocess;
17pub use token::{format_tokens, tokenize, Token};