Skip to main content

Crate shuck_ast

Crate shuck_ast 

Source
Expand description

AST, token, and span types shared across the Shuck workspace.

shuck-parser produces these data structures, while crates such as shuck-indexer, shuck-linter, shuck-semantic, and shuck-formatter consume them.

Modules§

raw_shell
Lightweight lexical scans over raw shell source text.

Structs§

IdRange
Compact typed arena index and list storage utilities. A compact typed contiguous range into an arena-backed store.
Idx
Compact typed arena index and list storage utilities. A compact typed index into an arena-backed store.
ListArena
Compact typed arena index and list storage utilities. A simple append-only store for variable-length typed child lists.
Name
Identifier names used throughout the shell AST.
Position
Source positions, spans, and text range utilities. A position in source code.
Span
Source positions, spans, and text range utilities. A span of source code (start to end position).
TextRange
Source positions, spans, and text range utilities. A half-open byte range in source text, analogous to ruff’s TextRange.
TextSize
Source positions, spans, and text range utilities. A byte offset in source text, analogous to ruff’s TextSize.

Enums§

TokenKind
Token kinds emitted by the lexer. Cheap token classification for parser dispatch.