Help for this page

Select Code to Download


  1. or download this
    my $grammar = q{
      list : '(' item(s) ')' { $item[2] }
    ...
           | word
      word : /[^()]*/  
    };
    
  2. or download this
    my $grammar = <<'__END_OF_GRAMMAR__';
    
    ...
      word : /[^()]*/  
    
    __END_OF_GRAMMAR__
    
  3. or download this
    my $grammar = <<'__END_OF_GRAMMAR__';
      {
    ...
      word : /[^()]*/  
    
    __END_OF_GRAMMAR__
    
  4. or download this
      list : item(s)
      item : '(' <commit> list ')' { $item[3] }
           | word
      word : /[^()]*/
    
  5. or download this
      list : item(s?)
      item : '(' <commit> list ')' { $item[3] }
           | word
      word : /[^()]+/