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 Discussion Meditation section, so what thoughts have you had regarding the new Perl6 grammars? What great ideas are forming in your minds? Do you think they're going to be juicy or junk?
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl6 Grammars
by diotalevi (Canon) on Sep 23, 2002 at 20:43 UTC | |
by Anonymous Monk on Sep 24, 2002 at 06:53 UTC | |
by diotalevi (Canon) on Sep 24, 2002 at 13:12 UTC | |
Re: Perl6 Grammars
by Abigail-II (Bishop) on Sep 24, 2002 at 10:09 UTC | |
by Aristotle (Chancellor) on Sep 24, 2002 at 13:12 UTC | |
by Anonymous Monk on Sep 24, 2002 at 17:34 UTC | |
by educated_foo (Vicar) on Sep 25, 2002 at 03:11 UTC |