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

#1175 in Parser implementations

Download history 36/week @ 2024-02-19 51/week @ 2024-02-26 14/week @ 2024-03-11 4/week @ 2024-03-18 42/week @ 2024-04-01 124/week @ 2024-04-08 18/week @ 2024-04-15

184 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