25 releases (breaking)

Uses new Rust 2024

0.20.0 Apr 29, 2026
0.19.0 Feb 4, 2026
0.18.0 Jan 15, 2026
0.17.0 Nov 25, 2025
0.1.0 Dec 11, 2021

#719 in Parser implementations

Download history 10/week @ 2026-01-17 24/week @ 2026-01-24 33/week @ 2026-01-31 9/week @ 2026-02-07 7/week @ 2026-02-14 9/week @ 2026-02-21 12/week @ 2026-02-28 15/week @ 2026-03-07 1/week @ 2026-03-21 8/week @ 2026-03-28 9/week @ 2026-04-04 127/week @ 2026-04-11 85/week @ 2026-04-18 57/week @ 2026-04-25 9/week @ 2026-05-02

282 downloads per month
Used in 7 crates (6 directly)

GPL-3.0-or-later

2MB
41K SLoC

Yash-syntax

yash-syntax is a Rust library crate for parsing shell script source code. This crate is part of yash, but can be used independently to parse POSIX-compatible shell scripts.

Note that yash-syntax does not include functionality for executing parsed scripts.

yash-syntax at crates.io yash-syntax at docs.rs Build status

Features

  • Parsing POSIX-compatible shell scripts
  • Supporting all syntax constructs including compound commands
  • Performing alias substitution

Usage

Add yash-syntax as a dependency in your Cargo.toml.

See the API documentation for details.

License

This crate is distributed under GPLv3.

Dependencies

~5–11MB
~230K SLoC