Project

General

Profile

Feature #18242 » and-or-masgn-18242.diff

jeremyevans0 (Jeremy Evans), 10/06/2021 04:23 PM

View differences:

parse.y
{
$$ = logop(p, idAND, $1, $3, &@2, &@$);
}
| expr keyword_and mlhs '=' lex_ctxt mrhs_arg
{
$$ = logop(p, idAND, $1, node_assign(p, $3, $6, $5, &@3), &@2, &@$);
}
| expr keyword_and mlhs '=' lex_ctxt command_call
{
$$ = logop(p, idAND, $1, node_assign(p, $3, $6, $5, &@3), &@2, &@$);
}
| expr keyword_or expr
{
$$ = logop(p, idOR, $1, $3, &@2, &@$);
}
| expr keyword_or mlhs '=' lex_ctxt mrhs_arg
{
$$ = logop(p, idOR, $1, node_assign(p, $3, $6, $5, &@3), &@2, &@$);
}
| expr keyword_or mlhs '=' lex_ctxt command_call
{
$$ = logop(p, idOR, $1, node_assign(p, $3, $6, $5, &@3), &@2, &@$);
}
| keyword_not opt_nl expr
{
$$ = call_uni_op(p, method_cond(p, $3, &@3), METHOD_NOT, &@1, &@$);
(2-2/3)