The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# $Pegex::Parser::Debug = 1;

my $t; use lib ($t = -e 't' ? 't' : 'test');
use Test::More tests => 1;

use Pegex;
use Pegex::Input;

$grammar_file = "$t/mice.pgx";

eval { pegex( Pegex::Input->new(file => $grammar_file) )->parse("3 blind mice\n") }; $@
? fail $@
: pass "!<rule> works";