Skip to main content

Module syntax

Module syntax 

Source
Expand description

SyntaxKind — the kinds of CST tokens and nodes — and the rowan Language binding for badness’s LaTeX surface CST.

Enums§

BadnessLang
The rowan language marker for badness’s CST.
SyntaxKind
Kinds of tokens (terminals, from the lexer) and nodes (composites, from the parser) in the CST.

Functions§

is_collapsible_trivia
Whitespace and newlines are the only trivia the formatter rewrites; comments are preserved verbatim and so are not collapsible. A shared shape predicate: the formatter’s gap normalization and the semantic layer’s expl3 statement segmentation both skip exactly this class.
is_param_digit
Whether a WORD token is a single TeX parameter digit (1..=9) — the shape that follows # in a parameter reference. Reads only the token text.
is_trivia
Trivia ignored by syntax readers: collapsible whitespace plus comments.

Type Aliases§

SyntaxElement
SyntaxNode
SyntaxToken