Perl 6 Compiler Perl 6 Compiler Status and the Parrot Compiler Toolkit #17

Regexes, Tokens, and Rules

A "rule" is a regex that doesn't backtrack (like a token), but whitespace in the regex is replaced by a <?ws> matching rule.

rule parameter_list 
  { <parameter>[ , <parameter>]*}
continued...
Copyright © 2006 Patrick Michaud