* Michael Mathews <[EMAIL PROTECTED]> [2006-06-08 13:15]:
> This is the smartest suggestion I've yet seen on the subject,
> but, not being all *that* familiar with Perl6 Grammars (aren't
> they something like contextually-smart regexes?), can anyone
> give an example of Perl 6 code that uses grammars and can
> express some wiki-formatting?
Not me, at the time of writing. :-) I’ve just read the documents:
http://dev.perl.org/perl6/doc/design/apo/A05.html
http://dev.perl.org/perl6/doc/design/exe/E05.html
http://dev.perl.org/perl6/doc/design/syn/S05.html
It doesn’t take more than that to see that P6 Grammars will blow
any existing way to write parsers clear out of the water, though.
Regards,
--
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;