4 releases (breaking)

0.4.0 Sep 28, 2024
0.3.0 Jul 12, 2024
0.2.0 Jun 9, 2024
0.1.0 Apr 13, 2024

#2543 in Command line utilities

Download history 2/week @ 2024-06-24 92/week @ 2024-07-08 17/week @ 2024-07-15 47/week @ 2024-07-29 9/week @ 2024-08-26 16/week @ 2024-09-16 207/week @ 2024-09-23 54/week @ 2024-09-30 11/week @ 2024-10-07

288 downloads per month
Used in 3 crates

GPL-3.0-or-later

2.5MB
49K SLoC

Yash-semantics

yash-semantics is a Rust library crate that implements the semantics of the shell command language used in yash.

yash-semantics at crates.io yash-semantics at docs.rs Build status

License

This crate is distributed under GPLv3.


lib.rs:

Semantics of the shell language.

This crate defines the standard semantics for the shell language. The core of the semantics is command execution and word expansion. A command can be executed by calling Command::execute. A word can be expanded by using functions and traits defined in expansion.

The read_eval_loop reads, parses, and executes commands from an input. It is a utility for running a shell script.

Dependencies

~8–18MB
~272K SLoC