parse_nlist/parse_nlist.rs
1use std::path::Path;
2
3use apdl_parser::{Nlist, get_list};
4
5fn main() -> anyhow::Result<()> {
6 let path = Path::new("files/NLIST.lis");
7 let nodes: Vec<Nlist> = get_list(path)?;
8
9 println!("NLIST: {} records", nodes.len());
10 for (i, n) in nodes.iter().take(5).enumerate() {
11 println!("{i}: {n:?}");
12 }
13
14 Ok(())
15}
16