Mercurial > python-compiler.rs
comparison src/python_ast.rs @ 3:326d7f2a94d4
Remove useless abstraction of function name as Expr.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 31 May 2016 02:36:24 +0100 |
parents | 5fc7c2790d8c |
children | f27a4aee9dfa |
comparison
equal
deleted
inserted
replaced
2:5fc7c2790d8c | 3:326d7f2a94d4 |
---|---|
5 } | 5 } |
6 | 6 |
7 #[derive(Clone, Debug)] | 7 #[derive(Clone, Debug)] |
8 pub enum Statement { | 8 pub enum Statement { |
9 ClassDef(String, Vec<Expr>, Vec<Statement>), | 9 ClassDef(String, Vec<Expr>, Vec<Statement>), |
10 FunctionDef(Expr, Vec<Expr>, Vec<Statement>), | 10 FunctionDef(String, Vec<Expr>, Vec<Statement>), |
11 Global(Vec<String>), | 11 Global(Vec<String>), |
12 If(Expr, Vec<Statement>, Vec<Statement>), | 12 If(Expr, Vec<Statement>, Vec<Statement>), |
13 Assign(Vec<Expr>, Expr), | 13 Assign(Vec<Expr>, Expr), |
14 Return(Expr), | 14 Return(Expr), |
15 ImportFrom(String, Vec<Expr>), | 15 ImportFrom(String, Vec<Expr>), |