develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33617 - trunk/languages/perl6/src/parser

From:
pmichaud
Date:
December 7, 2008 08:26
Subject:
[svn:parrot] r33617 - trunk/languages/perl6/src/parser
Message ID:
20081207162653.D3F7CCB9AF@x12.develooper.com
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=')



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About