Rules
The 'rule' keyword says that whitespace in the regex corresponds to whitespace in the input
rule TOP { <integer> <addop> <integer> {*} }
is the same as
token TOP { <.ws> <integer> <.ws> <addop> <.ws> <integer> <.ws> {*} }continued...
Parrot | Perl6Grammar compiler and parsers | #26 |
The 'rule' keyword says that whitespace in the regex corresponds to whitespace in the input
rule TOP { <integer> <addop> <integer> {*} }
is the same as
token TOP { <.ws> <integer> <.ws> <addop> <.ws> <integer> <.ws> {*} }continued...
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |