comparison src/python_ast.rs @ 48:039f85b187f2

Also handle relative imports.
author Bastien Orivel <eijebong@bananium.fr>
date Tue, 07 Jun 2016 13:34:12 +0200
parents 38f59b0efc2c
children 141f1769e1f0
comparison
equal deleted inserted replaced
47:38f59b0efc2c 48:039f85b187f2
56 56
57 // Import(alias* names) 57 // Import(alias* names)
58 Import(Vec<alias>), 58 Import(Vec<alias>),
59 59
60 // ImportFrom(identifier? module, alias* names, int? level) 60 // ImportFrom(identifier? module, alias* names, int? level)
61 ImportFrom(String, Vec<alias>, Option<i32>), // TODO: check the size of level. 61 ImportFrom(String, Vec<alias>, Option<i32>),
62 62
63 // Global(identifier* names) 63 // Global(identifier* names)
64 Global(Vec<String>), 64 Global(Vec<String>),
65 65
66 // Nonlocal(identifier* names) 66 // Nonlocal(identifier* names)