From: Dan Sugalski Date: 2002-08-24T08:30:17+09:00 Subject: Re: Perl Exegesis 5 (good ideas for Ruby to consider?) At 7:45 AM +0900 8/24/02, Mauricio Fern�ndez wrote: >On Sat, Aug 24, 2002 at 03:37:04AM +0900, Dan Sugalski wrote: >> At 3:19 AM +0900 8/24/02, Phil Tomson wrote: >> >In article , >> >Mike Wilson wrote: >> >>You can find the Perl Exegesis 5 here: >> >>http://www.perl.com/pub/a/2002/08/22/exegesis5.html >> >> >> >>Anyone else get more and more glad that Ruby exists every time they see a >> >>new Perl Exegesis? >> > >> >;-) >> > >> >Actually, there are some pretty cool things in this particular exegesis. >> >Check it out. I just skimmed it, but it seems like they're making regex's >> >more object oriented for one. Also, they're adding the ability to define >> >grammars (looks like a new grammar keyword has been added) with rules and >> >patterns. This will be a great language for parsing other languages. >> >> The executive summary of A5/E5 is "Perl 5 regexes with yacc and lex rolled >> in". > >What kind of grammars would it be able to parse? Is it LALR(1) as yacc? I've still not worked out how far you can go with it, but you've at least got the power of a full recursive descent parser. (We've a BNF to recursive descent parser converter in the Parrot kit--at the moment it targets the Parse::RecDescent module for perl 5, but we're going to retarget it to perl 6's rule system once we've got it fully implemented) -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai dan@sidhe.org have teddy bears and even teddy bears get drunk