1 # Copyright (C) 2006-2009, Parrot Foundation.
5 # dump all namespaces and the contents recursively
8 .include "interpinfo.pasm"
9 .include "iterator.pasm"
11 ns = get_root_namespace
23 it = .ITERATE_FROM_START
25 spac = repeat " ", $I2
30 # there might be a smy with the same name as a namespace
31 $P1 = ns.'get_sym'($S0)
32 if null $P1 goto no_sym
33 eq_addr $P0, $P1, no_sym
41 unless $I0 goto no_nci
48 $I0 = isa $P0, 'MultiSub'
49 unless $I0 goto no_multi
59 $I0 = isa $P0, 'NameSpace'
68 # dump the types of a MultiSub
77 spac = repeat " ", $I2
82 $P1 = $P0."get_multisig"()
83 if null $P1 goto next_loop
103 # vim: expandtab shiftwidth=4 ft=pir: