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 … \ficonditional the shape gate paired. - Conditional
Branch - One branch of a
Conditional. The first holds the opener, its test, and the then-body; every later one opens with its\else/\ordivider. - End
- An
\end{name}node. - Environment
- A
\begin{…} … \end{…}environment. - Group
- A
{ … }group — an argument, or a nested brace group. - Name
Group - The
{name}group following\begin/\end. - Optional
- A
[ … ]optional argument.