Crate idf_parser

Source
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.

The IDF V3 specification.

§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§

board
component_placement
components
drilled_holes
headers
notes
point
primitives

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.