use std::error;
use std::io::{self, Read};
fn main() -> Result<(), Box<dyn error::Error>> {
let mut data = Vec::new();
io::stdin().read_to_end(&mut data)?;
match jomini::BinaryTape::from_eu4(&data) {
Ok(t) => println!("{:#?}", t.tokens()),
Err(e) => println!("errored with {}", e),
}
Ok(())
}