X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Envelope-From: paubert AT iram DOT es Date: Tue, 10 Feb 2015 00:49:31 +0100 From: Gabriel Paubert To: geda-user AT delorie DOT com Subject: Re: [geda-user] Using Lua to safely read configuration and layout files (program attached) Message-ID: <20150209234931.GB29988@visitor2.iram.es> References: <3252013 DOT jziFbvHuEb AT jasum> <130419BB-B323-48C5-907B-40C543EECBD6 AT noqsi DOT com> <11893470 DOT abMVPv7LQC AT jasum> <2E68A9E3-2B53-4D59-9C1C-FB0662F4273E AT icloud DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spamina-Bogosity: Unsure X-Spamina-Spam-Score: -0.2 (/) X-Spamina-Spam-Report: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4434] 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 Precedence: bulk On Tue, Feb 10, 2015 at 12:21:29AM +0100, Roland Lutz wrote: > 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. > Actually, the PCB format became much more readable after the binary flags were replaced by readable strings. If there is one defect in the gEDA format, it is the large number of single digit numeric data in an arbitrary order on some lines. Gabriel