delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/09/18:24:25

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Tue, 10 Feb 2015 00:21:29 +0100 (CET)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Using Lua to safely read configuration and layout
files (program attached)
In-Reply-To: <2E68A9E3-2B53-4D59-9C1C-FB0662F4273E@icloud.com>
Message-ID: <alpine.DEB.2.11.1502100018360.23048@nimbus>
References: <CAOFvGD7pJTo8A=MXVbuuXO=++0vGukUyqVfckVtnCi99ziqWJQ AT mail DOT gmail DOT com> <3252013 DOT jziFbvHuEb AT jasum> <130419BB-B323-48C5-907B-40C543EECBD6 AT noqsi DOT com> <11893470 DOT abMVPv7LQC AT jasum> <EFE01D80-593C-4C7E-9BEF-413F8F3FC609 AT noqsi DOT com>
<2E68A9E3-2B53-4D59-9C1C-FB0662F4273E AT icloud DOT com>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

You don't gain anything by formatting the data differently.

No matter if the file format looks like XML, Lua, or plain numbers, you 
have to parse it to do anything useful with it, and you have to put it 
into a context to do most interesting things.  Whether you do the former 
using a XML/Lua library or a mostly trivial parser doesn't make much of a 
difference.

The one benefit from the current format is that it can easily be processed 
by almost any tool; the drawback being that editing it by hand requires a 
reference in another window.  The only thing which can be achieved by 
changing the data formatting other than optimizing for different user 
preferences is reducing the need for this reference, probably at the cost 
of degrading parseability.

You are suggesting your files could be converted to gEDA format using a 
simple script.  If that is so, why can't gEDA files be converted to your 
format for Lua processing using a complementary script?

- Raw text -


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