Re: Access to the perl6 parser
>>http://www.csse.monash.edu.au/~damian/CPAN/Language-Pythonesque-beta.tar.gz > > How close to a complete Python implementation is it? I can see shipping it > as part of perl 5.8.0 if it's close. 6.0.0, too. (And yes, I'm serious) I'm afraid it isn't Python at all. It's Perl without braces. Damian
Re: Access to the perl6 parser
At 08:50 AM 8/30/00 +1100, Damian Conway wrote: >> Damian Conway wrote: >> > >> >> Regardless, you can already do this in perl 5, and will > undoubtedly >> >> be able to do it in perl 6, with source filters. (If Damian can >> >> write perl that looks like Latin or Klingon, then python ought to >> >> be simple... :) >> > >> > I have a module (Language::Pythonesque) on that... :-) >> >> But it's not on CPAN, or is it? > >No. It's far too evil to be on the CPAN. > >> Or is this a joke? > >No. You can download it from: > > http://www.csse.monash.edu.au/~damian/CPAN/Language-Pythonesque-beta.tar.gz How close to a complete Python implementation is it? I can see shipping it as part of perl 5.8.0 if it's close. 6.0.0, too. (And yes, I'm serious) Dan --"it's like this"--- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk
Re: Access to the perl6 parser
> Damian Conway wrote: > > > >> Regardless, you can already do this in perl 5, and will undoubtedly > >> be able to do it in perl 6, with source filters. (If Damian can > >> write perl that looks like Latin or Klingon, then python ought to > >> be simple... :) > > > > I have a module (Language::Pythonesque) on that... :-) > > But it's not on CPAN, or is it? No. It's far too evil to be on the CPAN. > Or is this a joke? No. You can download it from: http://www.csse.monash.edu.au/~damian/CPAN/Language-Pythonesque-beta.tar.gz > In any case where is a good place to look for example code on source > filters? The CPAN. Look at Switch.pm or (the soon-to-be-released) Lingua::Romana::Perligata. Damian
Re: Access to the perl6 parser
Damian Conway wrote: > >> Regardless, you can already do this in perl 5, and will undoubtedly >> be able to do it in perl 6, with source filters. (If Damian can >> write perl that looks like Latin or Klingon, then python ought to >> be simple... :) > > I have a module (Language::Pythonesque) on that... :-) But it's not on CPAN, or is it? Or is this a joke? In any case where is a good place to look for example code on source filters? Christian
Re: Access to the perl6 parser
Christian Soeller wrote: > Dan Sugalski wrote: > > > > > Because source filters are: > > > > 1) Relatively new (5.005 IIRC, but I could be mis-remembering) > > 2) A bloody pain in the neck to write > > > > Lots of things could use 'em if they were easier to do. That's one of the > > goals of perl 6, I think. > > > > Are there any docs in perl 5.6 illustrating syntax and usage? > > Christian I found a module Filter on CPAN. http://www.cpan.org/modules/by-module/Filter/ but a search of the archives at www.perl.com didn't find anything closer to core.
Re: Access to the perl6 parser
> Regardless, you can already do this in perl 5, and will undoubtedly > be able to do it in perl 6, with source filters. (If Damian can > write perl that looks like Latin or Klingon, then python ought to > be simple... :) I have a module (Language::Pythonesque) on that... :-) Damian
Re: Access to the perl6 parser
Dan Sugalski wrote: > > Because source filters are: > > 1) Relatively new (5.005 IIRC, but I could be mis-remembering) > 2) A bloody pain in the neck to write > > Lots of things could use 'em if they were easier to do. That's one of the > goals of perl 6, I think. > Are there any docs in perl 5.6 illustrating syntax and usage? Christian
Re: Access to the perl6 parser
At 06:21 PM 8/29/00 +, Jim Edwards wrote: > > > > > > Regardless, you can already do this in perl 5, and will undoubtedly be able > > to do it in perl 6, with source filters. > >So why do we have to do >$ip1=$i+1;# my pdl pet peave >$f->slice("(0),$ip1,$i"); > >instead of > >$f((0),$i+1,$i); # substitute your favorite syntax here > >? Because source filters are: 1) Relatively new (5.005 IIRC, but I could be mis-remembering) 2) A bloody pain in the neck to write Lots of things could use 'em if they were easier to do. That's one of the goals of perl 6, I think. Dan --"it's like this"--- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk
Re: Access to the perl6 parser
> > > Regardless, you can already do this in perl 5, and will undoubtedly be able > to do it in perl 6, with source filters. So why do we have to do $ip1=$i+1;# my pdl pet peave $f->slice("(0),$ip1,$i"); instead of $f((0),$i+1,$i); # substitute your favorite syntax here ? Must be source filters have problems? My guess is it's possible but a lot of work? Or is it ?
Re: Access to the perl6 parser
At 06:05 PM 8/29/00 +, Jim Edwards wrote: >IMHO if the perl6 core only allow access to the parser, than a module can >do just about anything including all of those things proposed in RFC 115 - 117. That's sort of on the list of things to allow (I think Damian RFC'd it) but whether it happens depends on the resulting parse speed. Hardcoded parsers seem to run faster than more dynamic, extendable ones, so it might cost too much. OTOH, parse speeds might end up being a trivial part of the total program load/compile time, so it might not matter. Regardless, you can already do this in perl 5, and will undoubtedly be able to do it in perl 6, with source filters. (If Damian can write perl that looks like Latin or Klingon, then python ought to be simple... :) Dan --"it's like this"--- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk
Access to the perl6 parser
IMHO if the perl6 core only allow access to the parser, than a module can do just about anything including all of those things proposed in RFC 115 - 117. Maybe this is an over simplification, but it seems that if the statement: use Python; caused the subsequent source to go through my Python::parser subroutine, my module could do just about anything (including parse Python!?) So the question is - does such an RFC exist for perl6 and is it's scope as broad as my imagination makes it out to be? If so need we ask for anything else?If not, why not? Jim