NEWLINE | |
| | |
| | compound_stmt NEWLINE |
| | ** tfpdef |
| | ** vfpdef |
NAME |
simple_stmt | compound_stmt |
expr_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt | nonlocal_stmt | assert_stmt |
testlist_star_expr ( augassign ( yield_expr | testlist ) | ( = ( yield_expr | testlist_star_expr ) )* ) |
+= | -= | *= | /= | %= | &= | |= | ^= | <<= | >>= | **= | //= |
del exprlist |
pass |
break_stmt | continue_stmt | return_stmt | raise_stmt | yield_stmt |
break |
continue |
yield_expr |
import_name | import_from |
import dotted_as_names |
from ( ( . | ... )* dotted_name | ( . | ... )+ ) import ( * | ( import_as_names ) | import_as_names ) |
NAME ( as NAME )? |
NAME ( . NAME )* |
global NAME ( , NAME )* |
nonlocal NAME ( , NAME )* |
if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | classdef | decorated |
| |
| |
or_test | lambdef_nocond |
not not_test | |
| |
< | > | == | >= | <= | <> | != | in | not in | is | is not |
* expr |
| |
| | |
| | |
| | NAME |
| | NUMBER |
| | ( STRING )+ |
| | ... |
| | None |
| | True |
| | False |
| | |
| | . NAME |
| |
| |
| | ** test |
| |
comp_for | comp_if |
from test | |
| |
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~