class Grammar::Base {
    my $.PRIOR;
}

Grammar::Base.PRIOR := $rule;
for ( @s ) { 
    $_ = emit_rule( $_, $_[1] );
}