On Thursday 04 March 2004 13:41, Bernhard Schmalhofer wrote:
> Jens Rieks wrote:
> > My next plan is to implement some optional parameters like a maximum
> > recursion deep and an array of PMCs not to recursively dump, in order to
> > ease the usesage with large data structures.
>
> How about the possibility to dump PASM, which can be read in by Parrot?
Good idea.

> Also the ability to dump, and read, YAML would be nice to have.
> Thinking about it, i think that there are many more formats we can think
> about.
I can modifiy the dumper to be object orientated. Then one can subclass from 
it and override just the printing functions.
As a side note, I am working on an EBNF parser generator, it might be usful 
for reading data dumps (http://parrot.jensbeimsurfen.de/library/EBNF/).

> > Printing some more information for ParrotIO, ParrotClass, ParrotObject,
> > OrderedHash, ManagedStruct and UnManagedStruct is also on my TODO list.
> > I have no idea how to dump the last three types, can anyone give me a
> > hint?
>
> I have been looking into the dumping of OrderedHash.
> However I got confused with the different get_- and next- methods.
> I think the basic problem was that accessing a PerlArray with a PMC as a
> key didn't work. Even when the PMC was a PerlInt.
This has been corrected if i remember correctly. A possible workaround is of 
course to use an integer register, but being able to use a PMC as key is 
indeed nicer.
Where can I find the methods?

> CU, Bernhard
jens

Reply via email to