comparison src/ast_type.rs @ 4:f27a4aee9dfa

Add ast.Attribute.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 31 May 2016 03:59:05 +0100
parents 326d7f2a94d4
children ddf372373a77
comparison
equal deleted inserted replaced
3:326d7f2a94d4 4:f27a4aee9dfa
175 self.environment.push(env); 175 self.environment.push(env);
176 Type::Bottom 176 Type::Bottom
177 } 177 }
178 }, 178 },
179 Expr::Alias(_, _) => Type::Bottom, 179 Expr::Alias(_, _) => Type::Bottom,
180 Expr::Attribute(lhs, rhs) => {
181 let type_left = self.visit_expr(*lhs);
182 println!("coucou {:?}", type_left);
183 Type::Bottom
184 },
180 Expr::Name(id) => { 185 Expr::Name(id) => {
181 let env = match self.environment.pop() { 186 let env = match self.environment.pop() {
182 Some(env) => env, 187 Some(env) => env,
183 None => return Type::Bottom 188 None => return Type::Bottom
184 }; 189 };