On Thu, May 10, 2001 at 08:40:52AM -0700, Larry Wall wrote:
> Dave Mitchell writes:
> : > Briefly: We want the Perl 6 runtime to be an equivalent of the Microsoft
> : > CLR, so that if you can somehow get bytecode onto it - from whatever
> : > language - you can run it. So we've got some bytecode that perl can run.
> : > Now think about what B::Deparse does.
> :
> : I knew the intention was to go the B::Deparse route,
>
> It was, but the current intention is to pursue Perl 5 translation (and
> maybe even a limp-along compatibility mode) via an alternate parser
> sitting beside the standard Perl 6 parser.
I should have been more clear.
I was referring to what B::Deparse does at the moment - turns opcode trees
into Perl 5 code. If you can "somehow get bytecode onto" Perl 6 - which you'll
need to do with an alternate parser - you can then use the Perl 6 equivalent
of B::Deparse to spit out Perl 6.
I was suggesting
retrofit perl 5 parser -> perl6 -> Perl 6 B::Deparse
rather than
perl 5 parser -> perl 5 -> Perl 5 B::Deparse::ToPerl6
(Try not to think about
perl 5 parser -> perl 5 -> Perl 5 B::Deparse::ToPython
or
retrofit python parser -> perl5 -> Perl 5 B::Deparse
. It'll only hurt.)
--
You're not Dave. Who are you?