So now putting C-style comments in p6 should be about as easy as

macro circumfix:/*...*/ () is parsed(/.*?/) { "" }

Yep.



But just to make sure I'm getting it:

macro circumfix:<soapbox>...</soapbox> () is parsed(/.*?/) {
"\n# much ranting deleted here . . . .\n" }


will actually work? :)

Yes. Though you might want to define it:


use XML::Grammar;

   macro circumfix:<soapbox>...</soapbox> () is parsed(/<XML::Grammar.tag>/) {
     "\n# much ranting deleted here . . . .\n"
   }

to make sure that it worked right for nested soapboxes.

Damian



Reply via email to