#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

#482 in Algorithms

Download history 4618/week @ 2024-11-16 3520/week @ 2024-11-23 4422/week @ 2024-11-30 3198/week @ 2024-12-07 2691/week @ 2024-12-14 931/week @ 2024-12-21 1274/week @ 2024-12-28 3988/week @ 2025-01-04 5984/week @ 2025-01-11 4886/week @ 2025-01-18 4477/week @ 2025-01-25 5560/week @ 2025-02-01 6121/week @ 2025-02-08 6449/week @ 2025-02-15 6724/week @ 2025-02-22 5032/week @ 2025-03-01

25,501 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