This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Translators/parsing Python


On Tue, Jan 25, 2000 at 10:06:43AM -0500, dj trombley wrote:
> 
> This was my feeling as well.  Compiled Python byte-code executes as a
> neat, easy to implement stack language.  You'll want to look at the
> marshalling facility for python.  (python/marshall.c)  A .pyc is just a
> marshalled code object.  I've started porting it to Guile, but since
> this is the first bit of Scheme I've ever coded, I'm not sure I'm doing
> it properly, or in an idiosyncratic way.  This is compounded by the fact
> that there is almost no documentation available.  What has me stumped is
> how to represent python dictionaries; one could of course simply port
> the python dictionary from C, but it seems there should be some way to
> expose the namespace facility of Guile.  Since I don't understand the
> namespace facility, and since again the documentation is scant, I'd
> stuck the project in the fridge for awhile.  Also, there seems to be
> some sort of mapping-type interface in ice-9/, but again, no docs.

You're looking for ``alists''. info (r5rs)Pairs and lists

[]s,
                                               |alo
                                               +----
--
      I am Lalo of deB-org. You will be freed.
                 Resistance is futile.

http://www.webcom.com/lalo      mailto:lalo@webcom.com
                 pgp key in the web page

Debian GNU/Linux       ---       http://www.debian.org
Brazil of Darkness   --   http://zope.gf.com.br/BroDar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]