in reply to Perl 6 - How to combine two negates charachter classes in a grammar

Just like in Perl 5 you can use look-aheads:

token neither_a_nor_b { <?before <not_a>> <?before <not_b>> . }

If you define your define your character classes positively, you can also combine them directly:

token a { <[ a ]> } token b { <[ b ]> } token neither_a_nor_b { <-a-b> }

(don't know if anybody implements that, though.

Perl 6 - links to (nearly) everything that is Perl 6.