9 releases (breaking)

0.8.0 Apr 8, 2024
0.7.0 Nov 11, 2023
0.6.1 May 1, 2023
0.6.0 Oct 1, 2022
0.1.0 Dec 11, 2021

#1265 in Parser implementations

Download history 17/week @ 2024-02-17 69/week @ 2024-02-24 1/week @ 2024-03-02 12/week @ 2024-03-09 4/week @ 2024-03-16 2/week @ 2024-03-23 31/week @ 2024-03-30 118/week @ 2024-04-06 33/week @ 2024-04-13 5/week @ 2024-04-20 35/week @ 2024-04-27

80 downloads per month
Used in 6 crates

GPL-3.0-or-later

625KB
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.3–2MB
~42K SLoC