Author: pmichaud
Date: Sun Dec  7 08:26:52 2008
New Revision: 33617

Modified:
   trunk/languages/perl6/src/parser/grammar-oper.pg

Log:
[rakudo]:  Add [,], [&], [|], and [^] reduction operators.


Modified: trunk/languages/perl6/src/parser/grammar-oper.pg
==============================================================================
--- trunk/languages/perl6/src/parser/grammar-oper.pg    (original)
+++ trunk/languages/perl6/src/parser/grammar-oper.pg    Sun Dec  7 08:26:52 2008
@@ -169,6 +169,10 @@
     is assoc('right')
     is lvalue(1)
     { ... }
+proto prefix:<[,]> is precedence('e=') is subname('list') {...}
+proto prefix:<[&]> is equiv(prefix:<[,]>) is subname('all') {...}
+proto prefix:<[|]> is equiv(prefix:<[,]>) is subname('any') {...}
+proto prefix:<[^]> is equiv(prefix:<[,]>) is subname('one') {...}
 
 ## loose and
 proto infix:<and> is precedence('d=')

Reply via email to