delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/07/18:40:23

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Virus-Scanned: Debian amavisd-new at papyrus.altaweb.hu
Date: Sun, 8 Feb 2015 00:38:42 +0100
From: Lev <leventelist AT gmail DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Using Lua to safely read configuration and layout
files (program attached)
Message-ID: <20150208003842.63db8a55@jive>
In-Reply-To: <32380475.xlWdxyhFd9@jasum>
References: <CAOFvGD7pJTo8A=MXVbuuXO=++0vGukUyqVfckVtnCi99ziqWJQ AT mail DOT gmail DOT com>
<2047684 DOT lX4NXpYgtQ AT jasum>
<201502072235 DOT t17MZuaZ025960 AT envy DOT delorie DOT com>
<32380475 DOT xlWdxyhFd9 AT jasum>
X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Mime-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t17Ncrob015128
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

On Sun, 08 Feb 2015 00:00:23 +0100
Christian Riggenbach <criggenbach AT magahugu DOT ch> wrote:

> To state the obvious: yeah, that would be a problem. Either code the
> unit- system in the core (hard to maintain), use something as trivial
> as "3*mm + $n 
> * 10*mil" and define mm end the other units as factors (hard to
> read). And unit-parsing on an higher level would negate the added
> benefit of a parser in the first way.

I wouldn't use ANY scripts in the PCB or sch file. That would make life
very hard. I'd use <whatever scripting language> to parse the data in a
file. This is the task to be done, just don't overcomplicate the solution. I
would be happy if it was Lua, but we could roll our own language and parser.

If there is something we can do, it doesn't mean we must do it.

Levente


- Raw text -


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