#vec-string #hpc #cluster #string-parser #expression-parser #hostlist #pdsh

hostlist-parser

Parses hostlist expressions into a Vec of Strings

6 releases

0.1.6 Feb 19, 2024
0.1.5 Apr 3, 2023
0.1.4 Feb 3, 2022
0.1.3 May 13, 2020
0.1.0 Oct 19, 2019

#515 in Algorithms

Download history 2520/week @ 2024-10-22 2888/week @ 2024-10-29 3909/week @ 2024-11-05 3892/week @ 2024-11-12 4887/week @ 2024-11-19 3649/week @ 2024-11-26 3831/week @ 2024-12-03 2920/week @ 2024-12-10 2719/week @ 2024-12-17 940/week @ 2024-12-24 1626/week @ 2024-12-31 4238/week @ 2025-01-07 6076/week @ 2025-01-14 4588/week @ 2025-01-21 5367/week @ 2025-01-28 4256/week @ 2025-02-04

21,113 downloads per month
Used in ochami-rs

MIT license

21KB
494 lines

hostlist-parser

Crates.io docs.rs

Parses hostlist expressions into a deduped Vec of Strings

This library implements hostlist parsing. It takes a hostlist expression and produces a Result of unique hostnames, or a parse error that can be introspected to see issues.

The fn to parse a hostlist is:

parse(input: &str,) -> Result<Vec<String>, combine::stream::easy::Errors<char, &str, usize>>

This parser can compile to native code and also with the wasm32-unknown-unknown target.

Dependencies

~1MB
~24K SLoC