polyparse 0.5.2

polyphasic schedule parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
use polyparse::naming::*;
use polyparse::Schedule;
use std::env::args;

fn main() {
    let Some(s) = args().skip(1).next() else {
        panic!("no schedule given. give an argument!");
    };
    let sched = Schedule::from_ident(&s).map(|x| x.long_id(&Polyinfo));
    println!("{}", sched.unwrap_or("Invalid".to_owned()));
}