diff Parser/parser.h @ 18609:59446d0f8341 legacy-trunk

Preliminary support for "from __future__ import generators" to enable the yield statement. I figure we have to have this in before I can release 2.2a1 on Wednesday. Note: test_generators is currently broken, I'm counting on Tim to fix this.
author Guido van Rossum <guido@python.org>
date Sun, 15 Jul 2001 21:08:29 +0000
parents 6f6f965c5e2d
children eebae4f60d05
line wrap: on
line diff
--- a/Parser/parser.h	Sun Jul 15 19:42:03 2001 +0000
+++ b/Parser/parser.h	Sun Jul 15 21:08:29 2001 +0000
@@ -25,6 +25,7 @@
 	stack	 	p_stack;	/* Stack of parser states */
 	grammar		*p_grammar;	/* Grammar to use */
 	node		*p_tree;	/* Top of parse tree */
+	int		p_generators;	/* 1 if yield is a keyword */
 } parser_state;
 
 parser_state *PyParser_New(grammar *g, int start);