[Python-checkins] python/dist/src/Parser Python.asdl, 1.1.2.12, 1.1.2.13

jhylton@users.sourceforge.net jhylton at users.sourceforge.net
Sun Oct 16 07:19:47 CEST 2005


Update of /cvsroot/python/python/dist/src/Parser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27139/Parser

Modified Files:
      Tag: ast-branch
	Python.asdl 
Log Message:
Track chance of yield from stmt to expr.

Somehwat crude integration of various (yield_expr|testlist) choices in
ast.  Perhaps add a helper function to hide the test for testlist.
The grammar is sure a mess.



Index: Python.asdl
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/Attic/Python.asdl,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -d -r1.1.2.12 -r1.1.2.13
--- Python.asdl	12 Oct 2005 03:18:07 -0000	1.1.2.12
+++ Python.asdl	16 Oct 2005 05:19:43 -0000	1.1.2.13
@@ -12,7 +12,7 @@
 	stmt = FunctionDef(identifier name, arguments args, 
                            stmt* body, expr* decorators)
 	      | ClassDef(identifier name, expr* bases, stmt* body)
-	      | Return(expr? value) | Yield(expr value)
+	      | Return(expr? value)
 
 	      | Delete(expr* targets)
 	      | Assign(expr* targets, expr value)
@@ -55,6 +55,7 @@
 	     | Dict(expr* keys, expr* values)
 	     | ListComp(expr elt, comprehension* generators)
 	     | GeneratorExp(expr elt, comprehension* generators)
+	     | Yield(expr? value)
 	     -- need sequences for compare to distinguish between
 	     -- x < 4 < 3 and (x < 4) < 3
 	     | Compare(expr left, cmpop* ops, expr* comparators)



More information about the Python-checkins mailing list