Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Perl6 Grammarsby kelan (Deacon) |
on Sep 23, 2002 at 20:05 UTC ( [id://200215]=perlmeditation: print w/replies, xml ) | Need Help?? |
I'm getting excited about Perl6 Grammars. We're going to be taking a big step up from normal regex's, a step that I think will make many things easier, and allow for cooler things to be possible. I've heard some grumblings from different places about how much regex's will be changing in Perl6, but as I read through Apocalypse 5, I kept thinking, "This is going to be cool." None of the Apocalypses thus far have impressed me more or had the coolness factor of the new grammar constructs. (Sorry for the overuse of 'cool.')
Full-fledged parsing will become much easier to do directly in Perl. I think this will simplify many many CPAN modules that are mostly based around parsing. Of course the other functionality provided by those modules won't go away, and in fact may be more easily enhanced by the use of grammars. I highly expect CPAN to begin offering not only modules but also standalone grammar definitions, ready to be downloaded and used directly if one of the parsing modules doesn't fit your exact needs. Perhaps the extension .pg will soon become as commonly recognized as .pm is now. The nice part about the grammars is that if you don't need a full one, you can still write simple rules for quick and easy matching, like it's done now. But you'll still have the ability to take advantage of the flexibility, control, and power inherent in these grammars. Considering the ties to object orientation (grammars with inheritance, polymorphism, etc), this is going to be some great stuff. Well this is the kelan Yak it up with Fullscreen ChatBox Edited (by multiple janitors): ~Mon Sep 23 22:51:01 2002 (GMT): Moved from Perl Monks Discussion to Meditations, per Consideration.
Back to
Meditations
|
|