11 breaking releases

new 0.12.0 Sep 28, 2024
0.10.0 Jul 12, 2024
0.7.0 Nov 11, 2023
0.6.1 May 1, 2023
0.1.0 Dec 11, 2021

#290 in Parser implementations

Download history 43/week @ 2024-06-12 2/week @ 2024-06-19 9/week @ 2024-06-26 30/week @ 2024-07-03 123/week @ 2024-07-10 29/week @ 2024-07-17 84/week @ 2024-07-24 68/week @ 2024-07-31 33/week @ 2024-08-07 45/week @ 2024-08-14 200/week @ 2024-08-21 45/week @ 2024-08-28 46/week @ 2024-09-04 36/week @ 2024-09-11 26/week @ 2024-09-18 359/week @ 2024-09-25

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

GPL-3.0-or-later

650KB
13K 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