Simple rules
Here's a Perl 6 regex to parse simple addition/subtraction statements
\d+ [ '+' | '-' ] \d+continued...
Parrot | Perl6Grammar compiler and parsers | #6 |
Here's a Perl 6 regex to parse simple addition/subtraction statements
\d+ [ '+' | '-' ] \d+continued...
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |