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
8#[allow(missing_docs)]
9mod error;
10#[allow(missing_docs)]
11/// Parsing entrypoints, lexer types, and shell-profile configuration.
12pub mod parser;
13/// Shebang parsing helpers shared by Shuck crates.
14pub mod shebang;
15
16/// Error types returned by parser operations.
17pub use error::{Error, Result};
18/// Shell dialect, profile, and option types exposed by the parser.
19pub use parser::{
20 OptionValue, ShellDialect, ShellProfile, ZshEmulationMode, ZshOptionState,
21 text_is_self_contained_arithmetic_expression, text_looks_like_nontrivial_arithmetic_expression,
22};