in reply to Re: Perl6 Grammars
in thread Perl6 Grammars
No, they will probably even tend to be longer due to defaulting to /x.
Seems what Larry was after is readability and extensibility though. Writing complex parsers that need to chain multiple regexes is not exactly trivial in Perl5, possible as it may be. The big deal with Perl6 patterns is the fact that they get promoted to actual control flow structures in and of themselves, and that interdependent groups of regexen get to enjoy the same benefits as classes/objects already do.
Makeshifts last the longest.
|
---|