Expand description
The crate parses IDF (Intermediate Data Format) files, specifically the IDF 3.0 format used for PCB design data exchange. It can parse board and panel .emn files, as well as library .emp files.
§Example
use idf_parser::parse_board_file;
use idf_parser::parse_library_file;
let board = parse_board_file("src/test_files/board.emn").unwrap();
let panel = parse_board_file("src/test_files/panel.emn").unwrap();
let library = parse_library_file("src/test_files/library.emp").unwrap();
Modules§
Macros§
- parse_
section - Section parser
- ws_
separated - Takes in a tuple of parsers with different return types
and returns a tuple of parsers each wrapped with
ws
.
Functions§
- parse_
board_ file - Take in the path a board or panel .emn file and return a Board struct.
- parse_
library_ file - Take in the path a library .emp file and return a Library struct.