At 3:49 PM +0100 4/10/02, Piers Cawley wrote:
>Aaron Sherman <[EMAIL PROTECTED]> writes:
> > Your idea at the end of regugitating the code back out as Parrot or Perl
>> is just slightly stunning on its own.
>
>I thought that was the easy bit. The compiler just (for appropriate
>values of 'just' of course) walks the syntax tree and uses an
>appropriate code generator to output appropriate source, which is what
>compilers have been doing since the year dot surely.
We're going to have to put the asm keyword in for you, aren't we? :)
(Or maybe attributed string eval, like:
$foo = eval.Parrot <<EOP
set I0, 12
sub I0, I0, 5
EOP
Now that'd be interesting. Any parser module could be used. Hmmm....)
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk