Mercurial > python-compiler.rs
comparison src/ast_dump.rs @ 77:7d1406181aae
Add ast.SetComp.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Mon, 13 Jun 2016 19:22:59 +0200 |
parents | efd42fc280e8 |
children | f1a845e4121b |
comparison
equal
deleted
inserted
replaced
76:efd42fc280e8 | 77:7d1406181aae |
---|---|
193 Some(value) => format!("yield {}", value.to_string()) | 193 Some(value) => format!("yield {}", value.to_string()) |
194 } | 194 } |
195 }, | 195 }, |
196 expr::YieldFrom(value) => format!("yield from {}", value.to_string()), | 196 expr::YieldFrom(value) => format!("yield from {}", value.to_string()), |
197 expr::Set(elts) => format!("{{{}}}", vec_to_strings_vec(elts).join(", ")), | 197 expr::Set(elts) => format!("{{{}}}", vec_to_strings_vec(elts).join(", ")), |
198 expr::SetComp(elt, generators) => format!("{{{} {}}}", elt.to_string(), vec_to_strings_vec(generators).join(" ")), | |
198 } | 199 } |
199 } | 200 } |
200 } | 201 } |
201 | 202 |
202 impl to_string_able for arg { | 203 impl to_string_able for arg { |