@@ -34,7 +34,7 @@ eval_input: testlist NEWLINE* ENDMARKER
3434decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
3535decorators: decorator+
3636decorated: decorators (classdef | funcdef | async_funcdef)
37- async_funcdef: ASYNC funcdef
37+ async_funcdef: 'async' funcdef
3838funcdef: 'def' NAME parameters ['->' test] ':' suite
3939parameters: '(' [typedargslist] ')'
4040typedargslist: ((tfpdef ['=' test] ',')*
@@ -85,7 +85,7 @@ exec_stmt: 'exec' expr ['in' test [',' test]]
8585assert_stmt: 'assert' test [',' test]
8686
8787compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated | async_stmt
88- async_stmt: ASYNC (funcdef | with_stmt | for_stmt)
88+ async_stmt: 'async' (funcdef | with_stmt | for_stmt)
8989if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
9090while_stmt: 'while' test ':' suite ['else' ':' suite]
9191for_stmt: 'for' exprlist 'in' testlist ':' suite ['else' ':' suite]
@@ -124,7 +124,7 @@ shift_expr: arith_expr (('<<'|'>>') arith_expr)*
124124arith_expr: term (('+'|'-') term)*
125125term: factor (('*'|'@'|'/'|'%'|'//') factor)*
126126factor: ('+'|'-'|'~') factor | power
127- power: [AWAIT ] atom trailer* ['**' factor]
127+ power: ['await' ] atom trailer* ['**' factor]
128128atom: ('(' [yield_expr|testlist_gexp] ')' |
129129 '[' [listmaker] ']' |
130130 '{' [dictsetmaker] '}' |
@@ -161,7 +161,7 @@ argument: ( test [comp_for] |
161161 star_expr )
162162
163163comp_iter: comp_for | comp_if
164- comp_for: [ASYNC ] 'for' exprlist 'in' or_test [comp_iter]
164+ comp_for: ['async' ] 'for' exprlist 'in' or_test [comp_iter]
165165comp_if: 'if' old_test [comp_iter]
166166
167167# As noted above, testlist_safe extends the syntax allowed in list
@@ -180,7 +180,7 @@ comp_if: 'if' old_test [comp_iter]
180180#
181181# See https://bugs.python.org/issue27494
182182old_comp_iter: old_comp_for | old_comp_if
183- old_comp_for: [ASYNC ] 'for' exprlist 'in' testlist_safe [old_comp_iter]
183+ old_comp_for: ['async' ] 'for' exprlist 'in' testlist_safe [old_comp_iter]
184184old_comp_if: 'if' old_test [old_comp_iter]
185185
186186testlist1: test (',' test)*
0 commit comments