[pypy-commit] pypy py3k: Import the Grammar for the new yield from construct

rguillebert noreply at buildbot.pypy.org
Thu Jan 19 10:57:46 CET 2012


Author: Romain Guillebert <romain.py at gmail.com>
Branch: py3k
Changeset: r51472:1233713137f2
Date: 2012-01-19 10:52 +0100
http://bitbucket.org/pypy/pypy/changeset/1233713137f2/

Log:	Import the Grammar for the new yield from construct

diff --git a/pypy/interpreter/pyparser/data/Grammar3.2 b/pypy/interpreter/pyparser/data/Grammar3.2
--- a/pypy/interpreter/pyparser/data/Grammar3.2
+++ b/pypy/interpreter/pyparser/data/Grammar3.2
@@ -136,4 +136,5 @@
 # not used in grammar, but may appear in "node" passed from Parser to Compiler
 encoding_decl: NAME
 
-yield_expr: 'yield' [testlist]
+yield_expr: 'yield' [yield_arg]
+yield_arg: 'from' test | testlist


More information about the pypy-commit mailing list