bpo-42374: Allow unparenthesized walrus in genexps (GH-23319)



This fixes a regression that was introduced by the new parser.

Automerge-Triggered-By: GH:lysnikolaou
diff --git a/Grammar/python.gram b/Grammar/python.gram
index ae5e4b5..91ce520 100644
--- a/Grammar/python.gram
+++ b/Grammar/python.gram
@@ -517,7 +517,7 @@
     | '(' a=(yield_expr | named_expression) ')' { a }
     | invalid_group
 genexp[expr_ty]:
-    | '(' a=expression ~ b=for_if_clauses ')' { _Py_GeneratorExp(a, b, EXTRA) }
+    | '(' a=named_expression ~ b=for_if_clauses ')' { _Py_GeneratorExp(a, b, EXTRA) }
     | invalid_comprehension
 set[expr_ty]: '{' a=expressions_list '}' { _Py_Set(a, EXTRA) }
 setcomp[expr_ty]: