Changeset 22177 for src/perl6

Show
Ignore:
Timestamp:
09/07/08 06:21:06 (3 months ago)
Author:
lwall
Message:

[STD] trying "where" as Junctional infix resembling "&", but with order guaranteed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/STD.pm

    r22174 r22177  
    25692569    <longname> { $¢.add_type($<longname>); } 
    25702570    [ of <fulltypename> ]? 
    2571     where <termish> 
     2571    [where <EXPR(item %chaining)> ]?    # (EXPR can parse multiple where clauses) 
    25722572} 
    25732573 
     
    29272927    { <sym> } 
    29282928 
     2929token infix:where ( --> Junctive_and) 
     2930    { <sym> } 
     2931 
    29292932 
    29302933## junctive or (any) 
     
    32033206    | '(' <in: ')', 'semilist', 'argument list'> {*}              #= func args 
    32043207    | <.unsp> '.'? '(' <in: ')', 'semilist', 'argument list'> {*} #= func args 
    3205     | {} <?before \s> <.ws> 
    3206         [ 
    3207         || <!{ $istype }> <!infixstopper> <arglist> { $listopish = 1 } 
    3208         || <?{ $istype }> ['where' <.ws> <constraints=termish> <.ws>]* 
    3209         ] 
    3210          
     3208    | {} [<?before \s> <!{ $istype }> <.ws> <!infixstopper> <arglist> { $listopish = 1 }]? 
    32113209    ] 
    32123210 
     
    32343232            {*}                                                 #= packagevar  
    32353233        ]? 
    3236         # subset type? 
    3237         <.ws> 
    3238         [ 'where' <.ws> <constraints=termish> <.ws> ]* 
    32393234        {*}                                                     #= typename 
    32403235