Skip to main content

Module nodes

Module nodes 

Source
Expand description

Typed AstNode wrappers over CST nodes, with positional/structural accessors. These are a read-only typed view over the generic, greedy CST (AGENTS.md decision #8): a \section and a \newcommand share the COMMAND shape, so accessors are positional (Command::nth_group) and tolerate greedily over-attached groups by construction. They expose structure only, never command meaning (decision #2) — no signature-DB lookup lives here.

Structs§

Begin
A \begin{name} node.
Command
A control sequence with its greedily-attached argument groups.
Conditional
An \if… … \else … \or … \fi conditional the shape gate paired.
ConditionalBranch
One branch of a Conditional. The first holds the opener, its test, and the then-body; every later one opens with its \else/\or divider.
End
An \end{name} node.
Environment
A \begin{…} … \end{…} environment.
Group
A { … } group — an argument, or a nested brace group.
NameGroup
The {name} group following \begin / \end.
Optional
A [ … ] optional argument.