summaryrefslogtreecommitdiffstats
path: root/Parser/parser.h
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 23:53:36 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 23:53:36 (GMT)
commitc24ea08644279224a7a8be419648261f9566c9b3 (patch)
treece7be60ecb2edfe2e8dbac4c231ef881130b3071 /Parser/parser.h
parent12a6d942d8138b4dd1a32d4d9a40ca312708aeee (diff)
downloadcpython-c24ea08644279224a7a8be419648261f9566c9b3.zip
cpython-c24ea08644279224a7a8be419648261f9566c9b3.tar.gz
cpython-c24ea08644279224a7a8be419648261f9566c9b3.tar.bz2
Disable the parser hacks that enabled the "yield" keyword using a future
statement.
Diffstat (limited to 'Parser/parser.h')
-rw-r--r--Parser/parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/parser.h b/Parser/parser.h
index b0c9a1e..95ec247 100644
--- a/Parser/parser.h
+++ b/Parser/parser.h
@@ -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);