// Copyright 2018 Eduardo Sánchez Muñoz // // Licensed under the Apache License, Version 2.0, or the MIT license , at your option. This file may not be // copied, modified, or distributed except according to those terms. extern crate yass_parser; fn main() { let args: Vec<_> = std::env::args_os().collect(); if args.len() != 2 { eprintln!("Usage: {} [input-file]", args[0].to_string_lossy()); std::process::exit(1); } let parser_limits = yass_parser::ParserLimits::unlimited(); let parser_output = yass_parser::parse_file(parser_limits, &args[1]).unwrap().1; println!("header: {:#?}", parser_output.header); println!("root_fields: {:#?}", parser_output.root_fields); }