14 releases (breaking)

0.12.1 Nov 9, 2024
0.11.0 Aug 22, 2024
0.10.0 Jul 12, 2024
0.7.0 Nov 11, 2023
0.1.0 Dec 11, 2021

#302 in Parser implementations

Download history 125/week @ 2024-07-28 34/week @ 2024-08-04 38/week @ 2024-08-11 186/week @ 2024-08-18 61/week @ 2024-08-25 28/week @ 2024-09-01 54/week @ 2024-09-08 28/week @ 2024-09-15 243/week @ 2024-09-22 229/week @ 2024-09-29 70/week @ 2024-10-06 72/week @ 2024-10-13 54/week @ 2024-10-20 68/week @ 2024-10-27 116/week @ 2024-11-03 174/week @ 2024-11-10

442 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