www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/08/08:00:42

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 8 Feb 2015 13:59:25 +0100
From: Bas Gieltjes <bas AT gieltjes DOT dds DOT nl>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Using Lua to safely read configuration and layout
files (program attached)
Message-ID: <20150208135925.6f6ddab6@Parasomnia.thuis.lan>
In-Reply-To: <3709636.NVszrDDjOR@jasum>
References: <CAOFvGD7pJTo8A=MXVbuuXO=++0vGukUyqVfckVtnCi99ziqWJQ AT mail DOT gmail DOT com>
<32380475 DOT xlWdxyhFd9 AT jasum>
<20150208003842 DOT 63db8a55 AT jive>
<3709636 DOT NVszrDDjOR AT jasum>
X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)
MIME-Version: 1.0
X-OriginalArrivalTime: 08 Feb 2015 12:59:25.0881 (UTC) FILETIME=[110F2290:01D0439F]
X-RcptDomain: delorie.com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t18CxVk8019164
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

Hello Christian,

> My dream
> would be a console in gschem (or standalone) for executing our own
> scriptlets directly on the life data.
 
When using gschem try hitting the ':'-key, voila a console! Now you
need to brush up on your Guile coding skills...

> I'm no fanboy of lua, but with an standartised, scriptable data
> format, adding a custom netlister or other small housekeeping jobs
> like autonumbering, autoslotting should be straightforward. 

For autonumbering use the script named "auto-uref.scm", to activate
it use a hook. For an example see your gschemrc file, find "hooks" or
"add-hook!".

When writing those custom netlisters or other scripts you need some
Guile knowledge. My guess is that I need to find a Python tutorial, it
is much quicker to teach myself Python than teaching others Guile.

 Bas
-- 

- Raw text -


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