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::{
16 parse, parse_with_colors, parse_with_options, ParseOptions, DEFAULT_MAX_NESTING_DEPTH,
17};
18pub use preproc::preprocess;
19pub use token::{format_tokens, tokenize, Token};