~cypheon/kicad2spice

ref: 96e390bc4f914314da98ecdfd7bd775e620563e2 kicad2spice/lib/sch_legacy_ast.ml -rw-r--r-- 421 bytes
96e390bc — Johann Rudloff Implement correct pin order according to field "Spice_Node_Sequence" 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
open Schematic

(* Parsed (incomplete) component (without part info e.g. pins) *)
module ParserComp = struct
  type t = {
    name : string;
    ref : string;
    value : string;
    fields : string Fields.t;
    pos : point2i;
    transform : mat22i;
  }
  [@@deriving show]
end

module ParserItem = struct
  type t =
    | Wire of Wire.t
    | Comp of ParserComp.t
    | Junction of Junction.t
  [@@deriving show]
end