At 01:33 PM 4/5/2001 -0700, Edward Peschko wrote:
> > >Whoa. This is so simple yet so sublime. It solves so many issues in one
> > >swoop. Cool.
> > >
> > >Assuming Perl6 will be parsing Perl5 code? Hmmm. That's interesting.
> > >Forget p52p6 and the whole 80/20 thing, we could potentially hit the
> > >100% mark.
> >
> > I'd really rather not, and I don't think that was Larry's intention. I
> > think rather it was "perl 5 warning/strict levels", not "parse as perl 5
> > code". At least I hope that's the case...
>
>well, personally I would rather that this *is* done, because it forces 
>perl 6's
>architecture to be solid.
>
>If perl6 is designed correctly, then it should be *extremely easy* to target
>multiple, differing syntaxes. TMTOWTDI on a grand scale..

Sure. If you want to write a plugin that does it, keen.

>And what would be a better way of testing this out than being able to
>make perl6 parse and run perl5 code correctly?

Well, I think it'd be easier to write a proper C parser for perl. Or an APL 
one. Heck, depending on what Larry does a Forth one might be easier. Perl 5 
has a *lot* of little nooks in it that would require some special-case 
code. (Besides, what exactly is perl 5 anyway? It's a rather poorly defined 
thing) It's one of the reasons we're writing perl 6...

>  (and I think that a key component
>ways of making this workable would be to promote a descendent of
>Parse::RecDescent to be the mechanism that parses perl for *real* and is the
>basis of micro-perl, etc.)

I doubt the parser will be all in perl for perl 6. Some maybe, and it will 
likely use the regex engine, but I don't see it being all in perl. (And 
yes, I know what Larry's said)


                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to