Help for this page

Select Code to Download


  1. or download this
        open( *Parse::RecDescent::ERROR, '>', \(my $parse_error) )
        or croak("Error: unable to redirect SDTERR.");
    ...
    
        my $parser = Parse::RecDescent->new($grammar) or die("Bad grammar!
    +");
    
  2. or download this
    use strict;
    
    ...
    }
    
    print parse('start: /foo/ | <error>', 'fo'), "\n";