[899] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: A description format for Gtk features

daemon@ATHENA.MIT.EDU (Rob Browning)
Thu Sep 4 19:28:36 1997

To: gtk-list@redhat.com
From: Rob Browning <rlb@cs.utexas.edu>
Date: 04 Sep 1997 18:30:06 -0500
In-Reply-To: Marius Vollmer's message of "04 Sep 1997 20:09:28 +0200"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Marius Vollmer <mvo@zagadka.ping.de> writes:

> That's what I know and where I am confident that it can take us
> wherever we want to go today (tm).

But of course :>

> What about Perl?  Can it work with the above syntax?  How would a
> more Perl rendition look like?

Funny you should ask.  I just wrote a *very* small parser last night
in perl for handling a simple scheme-ish syntax (since perl's native
support for data files with any heirarchical structure is not so
good).

I'd be  glad to share it once I clean it up.  It's somewhat primitive,
and right now has to read the entire file into RAM to parse it, but
for most files that's not a problem.

It handles lists of strings, other lists, and numbers, and translates
them to perl references to lists of strings, references to other
lists, and numbers.

-- 
Rob

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post