This commit is contained in:
parent
3c657d7991
commit
d31a7669d2
1 changed files with 6 additions and 1 deletions
|
@ -8,9 +8,14 @@ gleam add kicad_sexpr@1
|
|||
```
|
||||
```gleam
|
||||
import kicad_sexpr
|
||||
import simplifile
|
||||
import gleam/list
|
||||
|
||||
pub fn main() -> Nil {
|
||||
// TODO: An example of the project in use
|
||||
let assert Ok(bits) = simplifile.read_bits("/usr/share/kicad/symbols/Analog.kicad_sym")
|
||||
let assert Ok(symbol_library) = kicad_sexpr.parse_symbol_library(bits)
|
||||
let assert [symbol, ..] = symbol_library.symbols
|
||||
io.println(symbol.library_unit_id)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue