5 releases (breaking)

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

#2923 in Command line utilities

Download history 13/week @ 2024-09-13 25/week @ 2024-09-20 225/week @ 2024-09-27 22/week @ 2024-10-04 8/week @ 2024-10-11 5/week @ 2024-10-18 1/week @ 2024-10-25 7/week @ 2024-11-15 3/week @ 2024-11-22 11/week @ 2024-12-06 157/week @ 2024-12-13 5/week @ 2024-12-20

173 downloads per month
Used in 3 crates

GPL-3.0-or-later

2.5MB
50K 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

~9–19MB
~286K SLoC