Expand description
AST type definitions for the aozora parser.
§AST shape
The sole AST is the borrowed-AST defined in borrowed:
arena-allocated, Copy-able, deduplicated through
borrowed::Interner. Public consumers (aozora meta crate,
FFI / WASM / Python drivers, CLI) parse via
aozora::Document::parse() and walk a borrowed::AozoraNode<'_>.
§Top-level surface
Only the shared Copy-able payloads referenced by the borrowed
AST (BoutenKind, BoutenPosition, Indent, AlignEnd,
Container, ContainerKind, Keigakomi, SectionKind,
AozoraHeadingKind, AnnotationKind) live at the top level. The
borrowed-AST node types live under borrowed::. The arena-backed
builder lives under alloc::.
Re-exports§
pub use node_kind::NodeKind;
Modules§
- accent
- Aozora Bunko accent decomposition — ASCII digraph → Unicode letter.
- alloc
- Arena-backed AST construction.
- borrowed
- Zero-copy, arena-allocated AST.
- extension 🔒
- Paired-container classifier tags.
- node_
kind - Cross-cutting “kind” tag for AST nodes.
Structs§
- Align
End - Container
- Paired block container payload: carries only the kind descriptor.
- Indent
- Keigakomi
- Span
- Byte-range span into the original source document.
Enums§
- Annotation
Kind - Aozora
Heading Kind - Bouten
Kind - Bouten
Position - Which side of the vertical-writing base text the bouten marks sit on.
- Container
Kind - The kinds of Aozora container blocks the lexer classifies.
- Section
Kind - Syntax
Error - Parse- and render-time error surface for
aozora-syntaxconsumers.