delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/09/12/18:23:52

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 <dj AT delorie DOT com>
To: geda-user AT delorie DOT com
In-reply-to:
<CAC4O8c_hq9WSaRtv1dUZLyFW-UaPBs-95JGB94EevdiLp8gQtg AT mail DOT gmail DOT com>
(geda-user AT delorie DOT com)
Subject: Re: [geda-user] shortest way towards parsing .pcb files outside pcb
References: <CAC4O8c_XFEAgyrokrwwavB0C+OjWXCB5xptkVwMx2i_t960qFg AT mail DOT gmail DOT com>
<201509120239 DOT t8C2dAiO026962 AT envy DOT delorie DOT com> <CAC4O8c_hq9WSaRtv1dUZLyFW-UaPBs-95JGB94EevdiLp8gQtg AT mail DOT gmail 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019