Parrot Perl 6 regexes #16

Named regexes

regex integer { <[+\-]>? \d+ }
regex ident { <alpha> \w* }
regex sigil { '$' | '@' | '%' | '&' }
regex fraction { <integer> '/' <integer> }

regex variable { <sigil> <ident> }
Copyright © 2009
http://www.pmichaud.com/2009/pres/