On Fri, 7 Jun 2002, John Siracusa wrote: > On 6/7/02 4:48 PM, Luke Palmer wrote: > > rule tag($name) {:w \< $name %opts:=[ (\S+)=(\S+) ]* \> } > > > > Then, you can match an img tag with: > > > > / <tag 'img'> / > > > > See, isn't that great? > > Don't you mean, "see, isn't that massively over-simplified?" ;)
D'oh! Yes, quotes, right.... I like the idea that regular expressions, er, I mean, pattern matching does grammar-like things now. And the fact that you can derive. I would love to see perl replace yacc, for the most part. Perl's looking like a *very* powerful text processing language, on a higher level than it was before. I'm just expressing my respect for the new design. > (but yeah, we get the idea... :) Thanks.