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