comparison src/ast_dump.rs @ 76:efd42fc280e8

Add ast.Set.
author Bastien Orivel <eijebong@bananium.fr>
date Mon, 13 Jun 2016 19:19:49 +0200
parents 1abc8ca9f30b
children 7d1406181aae
comparison
equal deleted inserted replaced
75:1abc8ca9f30b 76:efd42fc280e8
192 None => String::from("yield"), 192 None => String::from("yield"),
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 } 198 }
198 } 199 }
199 } 200 }
200 201
201 impl to_string_able for arg { 202 impl to_string_able for arg {