in reply to Re^2: Perl 6 rules and complexity
in thread Perl 6 rules and complexity
Any arbitrary code is allowed in rule actions, just as you can put any arbitrary code into a yacc grammar's reductions.
Perl likes to optimize for power over purity unless you specify otherwise somehow.