13 breaking releases

Uses new Rust 2024

new 0.14.0 Mar 23, 2025
0.13.0 Dec 14, 2024
0.12.1 Nov 9, 2024
0.10.0 Jul 12, 2024
0.1.0 Dec 11, 2021

#305 in Parser implementations

Download history 52/week @ 2024-12-01 184/week @ 2024-12-08 96/week @ 2024-12-15 80/week @ 2024-12-22 37/week @ 2024-12-29 66/week @ 2025-01-05 25/week @ 2025-01-12 39/week @ 2025-01-19 58/week @ 2025-01-26 53/week @ 2025-02-02 93/week @ 2025-02-09 90/week @ 2025-02-16 39/week @ 2025-02-23 63/week @ 2025-03-02 52/week @ 2025-03-09 25/week @ 2025-03-16

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

GPL-3.0-or-later

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