comparison 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
comparison
equal deleted inserted replaced
73:2a6629ea82b5 74:97537c90d92d
90 DictComp(Box<expr>, Box<expr>, Vec<comprehension>), 90 DictComp(Box<expr>, Box<expr>, Vec<comprehension>),
91 //GeneratorExp(Box<expr>, Vec<comprehension>) 91 //GeneratorExp(Box<expr>, Vec<comprehension>)
92 92
93 // the grammar constrains where yield expressions can occur 93 // the grammar constrains where yield expressions can occur
94 Await(Box<expr>), 94 Await(Box<expr>),
95 //Yield(expr? value) 95 Yield(Box<Option<expr>>),
96 //YieldFrom(expr value) 96 //YieldFrom(expr value)
97 97
98 // need sequences for compare to distinguish between 98 // need sequences for compare to distinguish between
99 // x < 4 < 3 and (x < 4) < 3 99 // x < 4 < 3 and (x < 4) < 3
100 Compare(Box<expr>, Vec<cmpop>, Vec<expr>), 100 Compare(Box<expr>, Vec<cmpop>, Vec<expr>),