Mercurial > python-compiler.rs
comparison src/python_ast.rs @ 71:2c1e2ce41263
Add ast.AsyncFor.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Mon, 13 Jun 2016 18:02:34 +0200 |
parents | a73eaf42bea1 |
children | 7ac23f4336b1 |
comparison
equal
deleted
inserted
replaced
70:c9b9165abb9e | 71:2c1e2ce41263 |
---|---|
27 | 27 |
28 //AugAssign(expr target, operator op, expr value) | 28 //AugAssign(expr target, operator op, expr value) |
29 AugAssign(expr, operator, expr), | 29 AugAssign(expr, operator, expr), |
30 | 30 |
31 // For(expr target, expr iter, stmt* body, stmt* orelse) | 31 // For(expr target, expr iter, stmt* body, stmt* orelse) |
32 For(expr, expr, Vec<stmt>, Vec<stmt>), | |
33 | |
34 // AsyncFor(expr target, expr iter, stmt* body, stmt* orelse) | 32 // AsyncFor(expr target, expr iter, stmt* body, stmt* orelse) |
35 //AsyncFor(expr, expr, Vec<stmt>, Vec<stmt>), | 33 // If the last field is true, then it's an AsyncFor. |
34 For(expr, expr, Vec<stmt>, Vec<stmt>, bool), | |
36 | 35 |
37 // While(expr test, stmt* body, stmt* orelse) | 36 // While(expr test, stmt* body, stmt* orelse) |
38 While(expr, Vec<stmt>, Vec<stmt>), | 37 While(expr, Vec<stmt>, Vec<stmt>), |
39 | 38 |
40 // If(expr test, stmt* body, stmt* orelse) | 39 // If(expr test, stmt* body, stmt* orelse) |