Next Higher-Order Parsing 31 

新しいツールNew tools

        sub side_condition {
          my ($A, $condition) = @_;
          my $parser = sub {    
            my $in = shift;
            my ($res, $out) = $A->($in)
                or return;
            $condition->($res) or return;
     
            return ($res, $out);
          };
        }

Next Copyright © 2007 M. J. Dominus