Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > ddfdf0b0f2e10c06cbb5bbb1f4ee8dd8 > files > 212

perl-Parse-Eyapp-1.182.0-3.mga4.x86_64.rpm

%{

=head1  SYNOPSIS

Minimal example of a Reduce-Reduce conflict

Compile it with:

   eyapp -b '' minimalrr2.eyp

Execute it with:

   ./minimalrr.pm -t

=head1 SEE ALSO

  File C<minimalrr.eyp>

=cut

use base q{DebugTail}; 
%}

%tree

%start s

%%
A:
      %name A_is_a
      'a'
;

s:
      %name S_is_a
      'a'
    | %name A
      A
;
%%

unless (caller) {
  my $prompt = 'Try "a" and press <CR><CTRL-D>: ';
  __PACKAGE__->main($prompt)
}