18 releases (breaking)

Uses new Rust 2024

0.15.0 May 11, 2025
0.14.0 Mar 23, 2025
0.13.0 Dec 14, 2024
0.12.1 Nov 9, 2024
0.1.0 Dec 11, 2021

#434 in Parser implementations

Download history 63/week @ 2025-02-03 113/week @ 2025-02-10 65/week @ 2025-02-17 34/week @ 2025-02-24 63/week @ 2025-03-03 55/week @ 2025-03-10 113/week @ 2025-03-17 69/week @ 2025-03-24 73/week @ 2025-03-31 34/week @ 2025-04-07 48/week @ 2025-04-14 53/week @ 2025-04-21 182/week @ 2025-04-28 172/week @ 2025-05-05 220/week @ 2025-05-12 47/week @ 2025-05-19

630 downloads per month
Used in 9 crates (8 directly)

GPL-3.0-or-later

735KB
15K 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

~1.2–2.1MB
~42K SLoC