colain
Parser for the Common Layer Interface (.cli) file format.
Note: This library does not yet parse ASCII files.
Requires rustc 1.51.0+
Example
use File;
use *;
use ;
// Load the file
let mut buf: = Vecnew;
open.unwrap.read_to_end.unwrap;
// Parse the file
let model = CLI::new.unwrap;
// for each layer
for layer in model.iter
Licence
Licensed under Apache 2.0
Contributing
Please feel free to submit a PR.
Additionally, .cli files would be very useful for testing, please consider
submitting any files to the testfiles directory as a PR.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
Todo
- Switch to Iterator API
- Support remaining header commands
- Tests
- PR for ASCII file support is welcome