},
-between => '_expand_between',
-not_between => '_expand_between',
+ -op => sub {
+ my ($self, $node, $args) = @_;
+ my ($op, @opargs) = @$args;
+ +{ $node => [ $op, map $self->expand_expr($_), @opargs ] };
+ },
};
$opt{expand_op} = {
}
return +{ -op => [
$op,
- $self->expand_expr($k, -ident),
+ $self->expand_expr(ref($k) ? $k : { -ident => $k }),
@rhs
] }
}