// (C) Copyright 2019 Hewlett Packard Enterprise Development LP use std::env; use prometheus_parser; fn main() { let args: Vec = env::args().collect(); let res = prometheus_parser::parse_expr(&args[1]); match res { Ok(r) => { println!("{:#?}", r); } Err(e) => { eprintln!("error: {}", e); } }; }