#string-parser #vec-string #hpc #cluster #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

#1 in #vec-string

Download history 2061/week @ 2024-06-19 2002/week @ 2024-06-26 3078/week @ 2024-07-03 1822/week @ 2024-07-10 2218/week @ 2024-07-17 1772/week @ 2024-07-24 2566/week @ 2024-07-31 1666/week @ 2024-08-07 1389/week @ 2024-08-14 1235/week @ 2024-08-21 1241/week @ 2024-08-28 2316/week @ 2024-09-04 1265/week @ 2024-09-11 1210/week @ 2024-09-18 1464/week @ 2024-09-25 1641/week @ 2024-10-02

5,935 downloads per month

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