Skip to main content

Crate aozora_syntax

Crate aozora_syntax 

Source
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§

AlignEnd
Container
Paired block container payload: carries only the kind descriptor.
Indent
Keigakomi
Span
Byte-range span into the original source document.

Enums§

AnnotationKind
AozoraHeadingKind
BoutenKind
BoutenPosition
Which side of the vertical-writing base text the bouten marks sit on.
ContainerKind
The kinds of Aozora container blocks the lexer classifies.
SectionKind
SyntaxError
Parse- and render-time error surface for aozora-syntax consumers.