Parsing component of [opening-hours] crate.
Add this to your Cargo.toml
:
toml
[dependencies]
opening-hours-syntax = "0"
And then a basic usage would look like that:
```rust use openinghourssyntax::parse;
// Opens until 18pm during the week and until 12am the week-end. const OH: &str = "Mo-Fr 10:00-18:00; Sa-Su 10:00-12:00";
fn main() { let oh = parse(&expression).unwrap(); eprintln!("{:?}", oh); } ```