Mercurial > python-compiler.rs
comparison src/python_ast.rs @ 47:38f59b0efc2c
Handle Import and add a test for it.
author | Bastien Orivel <eijebong@bananium.fr> |
---|---|
date | Tue, 07 Jun 2016 12:51:36 +0200 |
parents | 7af637f444d1 |
children | 039f85b187f2 |
comparison
equal
deleted
inserted
replaced
46:b3f47c8150c0 | 47:38f59b0efc2c |
---|---|
53 | 53 |
54 // Assert(expr test, expr? msg) | 54 // Assert(expr test, expr? msg) |
55 //Assert(expr, Option<expr>) | 55 //Assert(expr, Option<expr>) |
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>), // TODO: check the size of level. |
62 | 62 |
63 // Global(identifier* names) | 63 // Global(identifier* names) |