Mercurial > python-compiler.rs
comparison src/python_ast.rs @ 73:2a6629ea82b5
Add ast.Await.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Mon, 13 Jun 2016 18:21:06 +0200 |
parents | 7ac23f4336b1 |
children | 97537c90d92d |
comparison
equal
deleted
inserted
replaced
72:7ac23f4336b1 | 73:2a6629ea82b5 |
---|---|
89 //SetComp(Box<expr>, Vec<comprehension>) | 89 //SetComp(Box<expr>, Vec<comprehension>) |
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(expr value) | 94 Await(Box<expr>), |
95 //Yield(expr? value) | 95 //Yield(expr? value) |
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 |