1
0
mirror of https://github.com/golang/go synced 2024-11-26 01:27:58 -07:00

simplify comma code per ken's suggestion

R=ken
OCL=17164
CL=17164
This commit is contained in:
Russ Cox 2008-10-14 18:47:24 -07:00
parent 7c3a2c47b0
commit 4248607ffe

View File

@ -1607,19 +1607,11 @@ braced_keyexpr_list:
{
$$ = N;
}
| keyval_list_r
| keyval_list_r ocomma
{
$$ = rev($1);
}
| keyval_list_r ','
{
$$ = rev($1);
}
| expr_list_r
{
$$ = rev($1);
}
| expr_list_r ','
| expr_list_r ocomma
{
$$ = rev($1);
}