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

The Perl 6 <?ws> token

token ws {
    [ \s+
    | ^^ [ \# \N*
         | <?pod_comment>
         ]
    | \# [ <?PGE::Text::bracketed: <({[>
         | \N*
         ]
    ]*
}

and thus

rule parameter_list 
  { <parameter>[ , <parameter>]* }

automatically parses whitespace and comments between parameters in a list.

Copyright © 2006 Patrick Michaud