X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f Date: Sat, 12 Sep 2015 18:23:43 -0400 Message-Id: <201509122223.t8CMNhaZ024482@envy.delorie.com> From: DJ Delorie To: geda-user AT delorie DOT com In-reply-to: (geda-user AT delorie DOT com) Subject: Re: [geda-user] shortest way towards parsing .pcb files outside pcb References: <201509120239 DOT t8C2dAiO026962 AT envy DOT delorie DOT com> Reply-To: geda-user AT delorie DOT com Another option here is to switch to a file format that's already supported by lots of other languages, like XML or YAML. Then the remaining work breaks down into: * Deciding on a schema for the data * converting pcb to read/write that schema Scripts wouldn't *need* to use pcb's parser, they could use any old parser library, since the scripts already know what the parts of the schema they're interested in look like. Read file, fiddle with the parts you know, write file leaving everything else intact.