yaml_dumper.pir - PIR version of a YAML dumper, ala Data::Dumper
load_bytecode "dumper.pbc" # dump the P0 register yaml( $P0 ) # dump the P0 register, with "name" yaml( $P0, "name" )
PIR implementation of Perl 5's Data::Dumper module to dump YAML format.
This library provides the following functions:
This is the public (non object) interface to the yaml dumper library.
Required. The PMC to dump.
Optional. The name of the PMC.
Optional. The indent used at the start of each line printed.
Note: This function currently returns nothing. It should return the dumped data as a string, like Perl's Data::Dumper. Instead, everything is printed out using
Note: #2 Hash keys are now sorted using
Registers a dumper for new PMC type. EXCEPTION_UNIMPLEMENTED But see method __dump below.
the PMC id, as returned by the
a Sub pmc, that gets called in order to dump the content of the given PMC
sub = find_name "_dump_PerlArray" _register_dumper( .PerlArray, sub )
This function returns nothing.
If a method
__dump exists in the namespace of the class, it will be called with the current dumper object and the label of the PMC.
Internal helper function.
Returns the global dumper instance used by the non object interface.
Jens Rieks <parrot at jensbeimsurfen dot de> is the author and maintainer. Please send patches and suggestions to the Perl 6 Internals mailing list.