Mercurial > python-compiler.rs
comparison src/python_ast.rs @ 75:1abc8ca9f30b
Add ast.YieldFrom.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Mon, 13 Jun 2016 18:26:46 +0200 |
parents | 97537c90d92d |
children | efd42fc280e8 |
comparison
equal
deleted
inserted
replaced
74:97537c90d92d | 75:1abc8ca9f30b |
---|---|
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(Box<Option<expr>>), | 95 Yield(Box<Option<expr>>), |
96 //YieldFrom(expr value) | 96 YieldFrom(Box<expr>), |
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>), |
101 | 101 |