www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/08/11:50:43

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Proofpoint-Virus-Version: vendor=fsecure
engine=2.50.10432:5.13.68,1.0.33,0.0.0000
definitions=2015-02-08_03:2015-02-08,2015-02-08,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
suspectscore=3 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0
reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1502080183
From: Chris Smith <space DOT dandy AT icloud DOT com>
MIME-version: 1.0 (1.0)
Subject: Re: [geda-user] Using Lua to safely read configuration and layout
files (program attached)
Message-id: <CFA02387-721D-4DB5-A3AF-DA4A277860A9@icloud.com>
Date: Sun, 08 Feb 2015 16:48:58 +0000
References:
<CAOFvGD7pJTo8A=MXVbuuXO=++0vGukUyqVfckVtnCi99ziqWJQ AT mail DOT gmail DOT com>
<3635158 DOT z6Jv0Z2n4b AT jasum> <5275BECE-FDDD-4BB2-A94D-05EB647C8145 AT icloud DOT com>
<4098476 DOT cgi0cjUt5u AT jasum>
In-reply-to: <4098476.cgi0cjUt5u@jasum>
To: "geda-user AT delorie DOT com" <geda-user AT delorie DOT com>
X-Mailer: iPad Mail (12B466)
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

--Apple-Mail-050E9DE3-A9C8-451C-982C-203DAFCC913A
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable


> On 8 Feb 2015, at 13:41, Christian Riggenbach <criggenbach AT magahugu DOT ch> wr=
ote:
>=20
>> On Sunday 08 February 2015 13.27:12 you wrote:
>> It might be enough to simply allow an attribute:
>> script=3D"<attribute>=3D<expression>".
>=20
> Then we wouldn't have straight lua anymore, as it requieres another pass w=
ith=20
> the parser.

I didn't explain myself fully. When writing the data file gschem would take a=
ny script attributes and write the value as an additional attribute, so the o=
bject would have:

script=3D"<attribute>=3D<expression>"
<attribute>=3D<expression>

The second would be evaluated on a subsequent load and the former would pres=
erve the source expression, particularly if visible serving to document how t=
he value was calculated. This would require no additional GUI support from g=
schem.

Chris=

--Apple-Mail-050E9DE3-A9C8-451C-982C-203DAFCC913A
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div><br></div><div>On 8 Feb 2015, at 13:41=
, Christian Riggenbach &lt;<a href=3D"mailto:criggenbach AT magahugu DOT ch">crigge=
nbach AT magahugu DOT ch</a>&gt; wrote:<br><br></div><blockquote type=3D"cite"><div=
><span>On Sunday 08 February 2015 13.27:12 you wrote:</span><br><blockquote t=
ype=3D"cite"><span>It might be enough to simply allow an attribute:</span><b=
r></blockquote><blockquote type=3D"cite"><span>script=3D"&lt;attribute&gt;=3D=
&lt;expression&gt;".</span><br></blockquote><span></span><br><span>Then we w=
ouldn't have straight lua anymore, as it requieres another pass with </span>=
<br><span>the parser.</span><br></div></blockquote><br><div>I didn't explain=
 myself fully. When writing the data file gschem would take any script attri=
butes and write the value as an additional attribute, so the object would ha=
ve:</div><div><div><font color=3D"#000000"><span style=3D"background-color: r=
gba(255, 255, 255, 0);"><br></span></font></div><div><font color=3D"#000000"=
><span style=3D"background-color: rgba(255, 255, 255, 0);">script=3D"&lt;att=
ribute&gt;=3D&lt;expression&gt;"</span></font></div></div><div><span style=3D=
"background-color: rgba(255, 255, 255, 0);">&lt;attribute&gt;=3D&lt;expressi=
on&gt;</span></div><div><span style=3D"background-color: rgba(255, 255, 255,=
 0);"><br></span></div><div><span style=3D"background-color: rgba(255, 255, 2=
55, 0);">The second would be evaluated on a subsequent load and the former w=
ould preserve the source expression, particularly if visible serving to docu=
ment how the value was calculated. This would require no additional GUI supp=
ort from gschem.</span></div><div><span style=3D"background-color: rgba(255,=
 255, 255, 0);"><br></span></div><div><span style=3D"background-color: rgba(=
255, 255, 255, 0);">Chris</span></div></body></html>=

--Apple-Mail-050E9DE3-A9C8-451C-982C-203DAFCC913A--

- Raw text -


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