Parrot Perl6Grammar compiler and parsers #5

Simple rules

Here's a Perl 6 regex to parse simple addition/subtraction statements

\d+ [ '+' | '-' ] \d+ 

Some differences between Perl 5 and Perl 6 regexes

Copyright © 2009
http://www.pmichaud.com/2009/pres/