Changeset 17089

Show
Ignore:
Timestamp:
07/17/07 12:31:39 (2 years ago)
Author:
moritz
Message:

[STD] added the first perlhints POD blocks

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/Perl-6.0.0-STD.pm

    r16968 r17089  
    337337} 
    338338 
     339=begin perlhints #{ #} 
     340token:  block_comment 
     341syn:    #{ <arbitrary text> } 
     342name:   block comment 
     343desc:   #{ starts a comment that is terminated by }. Inside the comment \ 
     344        brackets may be nested. 
     345ex:     say  
     346        #{  
     347        this is a comment 
     348        #}  
     349        "something";  
     350=end perlhints 
     351 
    339352token block_comment { 
    340353    ^^ '#' <?{ ($<start>,$<stop>) = $.peek_brackets() }> 
     
    392405    [ <lambda> <signature> ]? <block> 
    393406} 
     407 
     408=begin perlhints -> 
     409token:  lambda 
     410syn:    -> <signature> { <statements> } 
     411name:   lambda 
     412desc:   -> introduces a (possibly empty) signature to a block 
     413ex:     for @list -> $a { say $a; } 
     414        my &function := -> { say 42; }; 
     415=end perlhints 
     416 
     417=begin perlhints <-> 
     418token:  lambda 
     419syn:    <-> <signature> { <statements> } 
     420name:   lambda rw 
     421desc:   <-> introduces a (possibly empty) signature to a block, applying the \ 
     422        'is rw' trait on all arguments 
     423ex:     for @liste <-> $a { $a++ } 
     424=end perlhints 
    394425 
    395426token lambda { '->' | '<->' }