Skip to main content

Crate badness_parser

Crate badness_parser 

Source
Expand description

badness-parser — the lossless CST parser, semantic model, and command-signature database behind badness, for LaTeX (.tex, .sty/.cls, .dtx, .ins) and BibTeX (.bib).

The parser treats input as generic TeX surface syntax and always produces a lossless rowan tree: reconstruct(text) == text, byte for byte. Semantics (arity, verbatim-ness, sectioning) are layered on top in semantic, never inside the grammar.

Re-exports§

pub use rowan;

Modules§

ast
Typed, read-only wrappers over the CST.
bib
The BibTeX/BibLaTeX parser: lexer, event-stream parser, and green-tree builder.
declarations
Project declarations for constructs syntax or semantics cannot infer from source without macro expansion.
directives
Comment directives that turn badness off for part of a file.
parser
The lexer, the event-stream parser, and the green-tree builder.
semantic
Single-file semantic analysis.
syntax
SyntaxKind — the kinds of CST tokens and nodes — and the rowan Language binding for badness’s LaTeX surface CST.

Structs§

SyntaxError
A syntax error, carried on a side channel keyed by byte range.