Disable the parser hacks that enabled the "yield" keyword using a future

statement.
This commit is contained in:
Neil Schemenauer 2002-03-22 23:53:36 +00:00
parent 12a6d942d8
commit c24ea08644
5 changed files with 25 additions and 11 deletions

View file

@ -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);