Skip to main content

Crate shuck_parser

Crate shuck_parser 

Source
Expand description

Shell lexer and parser APIs for the Shuck workspace.

shuck-parser turns shell source text into shuck-ast syntax trees and also exposes a source-backed lexer for lower-level tooling.

Re-exports§

pub use parser::OptionValue;
pub use parser::ShellDialect;
pub use parser::ShellProfile;
pub use parser::ZshEmulationMode;
pub use parser::ZshOptionState;
pub use parser::text_is_self_contained_arithmetic_expression;
pub use parser::text_looks_like_nontrivial_arithmetic_expression;

Modules§

parser
Parsing entrypoints, lexer types, and shell-profile configuration. Parser entrypoints, lexical types, and shell-profile configuration.
shebang
Shebang parsing helpers shared by Shuck crates. Helpers for reading interpreter names from shebang lines.

Enums§

Error
Error types returned by parser operations. Shuck error types.

Type Aliases§

Result
Error types returned by parser operations. Result type alias using shuck’s Error.