Skip to main content

shuck_parser/
lib.rs

1#![warn(missing_docs)]
2
3//! Shell lexer and parser APIs for the Shuck workspace.
4//!
5//! `shuck-parser` turns shell source text into `shuck-ast` syntax trees and also exposes a
6//! source-backed lexer for lower-level tooling.
7
8mod error;
9/// Parsing entrypoints, lexer types, and shell-profile configuration.
10pub mod parser;
11/// Shebang parsing helpers shared by Shuck crates.
12pub mod shebang;
13
14/// Error types returned by parser operations.
15pub use error::{Error, Result};
16/// Shell dialect, profile, and option types exposed by the parser.
17pub use parser::{
18    OptionValue, ShellDialect, ShellProfile, ZshEmulationMode, ZshOptionState,
19    text_is_self_contained_arithmetic_expression, text_looks_like_nontrivial_arithmetic_expression,
20};