Yet another thrift parser powered by nom.
```rust use std::str::FromStr;
use thrift_parser::Parser;
fn main() { let mut idlpath = std::path::PathBuf::fromstr(&std::env::var("CARGOMANIFESTDIR").unwrap()).unwrap(); idlpath.extend(vec!["thrift", "demo.thrift"]); let idl = std::fs::readtostring(idlpath).unwrap(); let (remains, document) = thrift_parser::document::Document::parse(&idl).unwrap(); println!("Parser remains: {:?}, document: {:?}", remains, document); } ```