From 05e7f595503bf87120819d92ad6b864f5b9ffcd2 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Wed, 5 Jan 2022 20:07:42 +0100 Subject: [PATCH] altium: extend documentation so we can parse Altium *.PcbLib files in the future --- pcbnew/plugins/altium/altium_parser.ksy | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pcbnew/plugins/altium/altium_parser.ksy b/pcbnew/plugins/altium/altium_parser.ksy index ef9093cfba..0fb4342a3c 100644 --- a/pcbnew/plugins/altium/altium_parser.ksy +++ b/pcbnew/plugins/altium/altium_parser.ksy @@ -12,12 +12,31 @@ meta: encoding: ISO8859-1 seq: +# Only relevant for *.PcbLib files +# - id: name +# type: name - id: record type: record repeat: eos # https://github.com/thesourcerer8/altium2kicad/blob/master/convertpcb.pl#L1291 types: + name: + seq: + - id: sub1_len + type: u4 + - id: data + type: name_sub1 + size: sub1_len + + name_sub1: + seq: + - id: name_len + type: u1 + - id: name + size: name_len + type: str + record: seq: - id: recordtype