liberty-parse

Liberty file format parser for Rust

Example usage

Parse libraries from a Liberty file

```rust use libertyparse::parselib;

let lib_str = r#" library(sample) { cell(AND2) { area: 1; } } "#;

for lib in parselib(libstr).unwrap() { println!("Library '{}' has {} cells", lib.name, lib.cells.len()); if let Some(cell) = lib.cells.get("AND2") { let area = cell.simpleattributes.get("area").mapor(0.0, |v| v.float()); println!("Cell AND2 has area: {}", area); } else { println!("Cell AND2 doesn't exist!"); } } ```

Limitations