diff src/python_ast.rs @ 74:97537c90d92d

Add ast.Yield.
author Bastien Orivel <eijebong@bananium.fr>
date Mon, 13 Jun 2016 18:25:02 +0200
parents 2a6629ea82b5
children 1abc8ca9f30b
line wrap: on
line diff
--- a/src/python_ast.rs
+++ b/src/python_ast.rs
@@ -92,7 +92,7 @@ pub enum expr {
 
     // the grammar constrains where yield expressions can occur
     Await(Box<expr>),
-    //Yield(expr? value)
+    Yield(Box<Option<expr>>),
     //YieldFrom(expr value)
 
     // need sequences for compare to distinguish between