12 breaking releases

0.13.0 Dec 14, 2024
0.12.1 Nov 9, 2024
0.12.0 Sep 28, 2024
0.10.0 Jul 12, 2024
0.1.0 Dec 11, 2021

#463 in Parser implementations

Download history 26/week @ 2024-09-18 378/week @ 2024-09-25 98/week @ 2024-10-02 63/week @ 2024-10-09 74/week @ 2024-10-16 68/week @ 2024-10-23 75/week @ 2024-10-30 166/week @ 2024-11-06 160/week @ 2024-11-13 142/week @ 2024-11-20 68/week @ 2024-11-27 70/week @ 2024-12-04 213/week @ 2024-12-11 42/week @ 2024-12-18 98/week @ 2024-12-25 25/week @ 2025-01-01

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

GPL-3.0-or-later

705KB
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