mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Disable the parser hacks that enabled the "yield" keyword using a future
statement.
This commit is contained in:
parent
12a6d942d8
commit
c24ea08644
5 changed files with 25 additions and 11 deletions
|
@ -25,7 +25,9 @@ typedef struct {
|
|||
stack p_stack; /* Stack of parser states */
|
||||
grammar *p_grammar; /* Grammar to use */
|
||||
node *p_tree; /* Top of parse tree */
|
||||
#if 0 /* future keyword */
|
||||
int p_generators; /* 1 if yield is a keyword */
|
||||
#endif
|
||||
} parser_state;
|
||||
|
||||
parser_state *PyParser_New(grammar *g, int start);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue