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-07_01:2015-02-07,2015-02-07,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-1502070087 Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and wrapped. From: Chris Smith Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (1.0) Subject: Re: [geda-user] FOSDEM Message-id: <41CC5ED8-C478-4546-A267-5F096E74A83C@icloud.com> Date: Sat, 07 Feb 2015 08:30:18 +0000 References: <1420499386 DOT 3521 DOT 3 DOT camel AT cam DOT ac DOT uk> <20150202152654 DOT GA13336 AT cuci DOT nl> <54CFD589 DOT 9040702 AT xs4all DOT nl> <20150203112631 DOT 3507a0c1 AT Parasomnia DOT thuis DOT lan> <20150204054256 DOT Horde DOT Pm1JV8RJbICk9SHvIGwZ7A3 AT webmail DOT in-berlin DOT de> <20150204193720 DOT Horde DOT 42xUN-NzhCJRWZne-M5eCQ1 AT webmail DOT in-berlin DOT de> <90236728-E79D-47C7-BFB1-34140DB85ACB AT sbcglobal DOT net> <201502042333 DOT t14NX28o024789 AT envy DOT delorie DOT com> <7C1A5871-3056-482C-BC58-173D90D80F77 AT icloud DOT com> In-reply-to: To: "geda-user AT delorie DOT com" X-Mailer: iPad Mail (12B466) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t178UkQk006115 Reply-To: geda-user AT delorie DOT com > On 6 Feb 2015, at 18:54, John Doty wrote: > > >> On Feb 6, 2015, at 11:20 AM, Jason White wrote: >> >> On Fri, Feb 6, 2015 at 1:07 PM, Edward Hennessy wrote: >> What is more simple than name=value or name={value, value, value}? I >> do no see how that is any more difficult to parse than the current >> format. > > Try writing a sscanf() format for it. Lots of tools easily handle records on lines with fixed numbers of fields separated by whitespace. But you have a more free-form grammar. Lisp S-expressions are even easier to parse, but they are still a significant barrier to tools other than Lisp. The point is, you don't need to. Because the data file is itself a Lua script all you have to do is load it. You instantly have your data in memory in well defined structures, ready to be manipulated or passed to another language if you prefer. Chris